Share on Google+Share on Google+

1 Answer(s)      6 years and a month ago
Posted in : WebSevices

to run one application in tomcat server which files we need.i think jsp,xml,html is sufficient

View Answers

April 21, 2011 at 1:18 PM

There are several files in Tomcat and each file is having some importance.These files have their specific location. Now if you want to create an application then you need to create a web application folder inside the webapps folder. This web application folder consists of files like jsp, html, web.xml, servlets etc.

After downloading and installing the tomcat, follow these steps to run a simple jsp program.

1)Go to the Control Panel>>System>>Environment Variable and set the variable CATALINA_HOME and put the path of your apache tomcat as a value like: C:\apache-tomcat-5.5.

2)Like that create another variable classpath and put the path of apache-tomcat lib as a value like C:\apache-tomcat-5.5\lib.*;

3)Also put the servlet api.jar file inside the lib folder.

4)Now create a jsp file:'hello.jsp'

<[email protected] language="java"%>
<%String st="Hello World";
Message is <%=st%>

5)Put this jsp file inside the apache-tomcat>>webapps>>web application folder.

6)You have to give appropriate name to web application folder like examples and put jsp file into it.

7)Then start the tomcat server by clicking startup.bat from the bin folder of your tomcat.

8)Open your browser and type the following url:

http://localhost:8080/examples/hello.jsp and press enter.

9)You jsp program will then display the output on the browser.

For more information, visit the following link:

JSP Tutorials



Related Tutorials/Questions & Answers:
TOMCAT  how can we deploy the project in Apache Tomcat
Tomcat  I am using UBUNTU and I want to install tomcat to run servlet programs
Tomcat  to run one application in tomcat server which files we need.i think jsp,xml,html is sufficient
tomcat  Is it necessary to restart the server if we change the JDK path in tomcat server?   Yes, Thanks   Yes, Thanks
Tomcat  send me one simple project application how can we deploy the project in tomcat where we can store the html and Jsp ad Java, XML files in the tomcat web apps folder. the following structure is correct or not Tomcat-web
the following links:
Tomcat  When i want to run the servlet program in tomcat i got the following errors type Status report message Servlet InsertServlet is not available description The requested resource (Servlet InsertServlet is not available
type in the url path of the tomcat to see the output
Tomcat  i have a problem in starting tomcat server.. May 12, 2011 12... resolving reference D:\Workspace\conf\tomcat... Global JNDI Resources javax.naming.NamingException: D:\Workspace\conf\tomcat
TOMCAT  When i am deploy the servlet class file in tomcat server i get the following errors pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request
Tomcat - WebSevices
Tomcat  Need help on Tomcat server with Questions and Answers
Tomcat Server
Tomcat Server  Why my tomcat server installation stop at using:jvm c:\program files\java\jdk 1.6.0\bin\client\jvm.dll. Even though i trying to install several times. please help me....   Installing Tomcat Server
Tomcat - WebSevices
Tomcat Error calling delegate restart  I am getting error like! ENTRY org.eclipse.wst.server.core 4 0 2008-03-10 12:26:33.992 !MESSAGE Error calling delegate restart() Tomcat v5.0 Server at localhost
Tomcat 6.0
Tomcat 6.0  Hi,this is harish i got an issue while running my project.I hope something wrong with my tomcat server .. ERROR:An internal error occurred during: "Publishing to Tomcat v6.0 Server at localhost
tomcat problem
tomcat problem  error like requested(rootdirectory/urlpattern) resources are not available getting while running servlet on tomcatserver
Tomcat Error:
Tomcat Error:   Hi, I am not able to start the tomcat server. If I try to start it then I am getting the below error. "coyote connector has not been started" Could some body please help me to solve the problem??? Thanks a ton
Tomcat 6.
Tomcat 6.  hi......I have problem like windows could not start the Apache Tomcat 6 on Local Computer. for more information ,review theSystem Event Log. If this is a non-Microsoft service,contact the service vendor, and refer
Tomcat server
Tomcat server  Can anyone tell me in simple words what this error is about.. ERROR org.hibernate.event.def.AbstractFlushingEventListener Could not synchronize database state with session org.hibernate.StaleObjectStateException
Tomcat.... - WebSevices
Tomcat....  Hi i am using tomcat5.0 & jdk1.5.The installation directories are as: C:\Tomcat5.0 & C:\Program Files\Java\jdk1.5.0_12   Suggession: Restart tomcat server and then try again. Before that check
Download Tomcat
Download Tomcat In this section we will discuss about downloading tomcat. This section will describe you about Apache Tomcat. This page will describe you what is Tomcat, tomcat components how to download Tomcat, tomcat releases, how
Tomcat & Struts - Struts
Tomcat & Struts  How a install and configure struts version 1.3.8 and Tomcat version 4.0
Tomcat Server
Tomcat Server In this section we will read about the Tomcat Server. Here we will read the various aspects of "Tomcat Server" such as what is tomcat server, components of tomcat, features of tomcat and many more. What
Sysdeo Tomcat Launcher Plugin
Sysdeo Tomcat Launcher Plugin   ... Tomcat 4.x, 5.x and 6.x Registering Tomcat process to Eclipse...) Adding Java Projects to Tomcat classpath Setting Tomcat JVM
How to download and install Tomcat?
How to download and install Tomcat?  Hi, How to download and install Tomcat? Share me the url to learn Tomcat. Thanks   Hi, Please check the tutorial: Guide to download and install Tomcat 6. Thanks
tomcat jsp call DLL
tomcat jsp call DLL  Where can i find Example of use JSP under Tomcat environment call DLL
Tomcat Configuration For Eclipse Server
Tomcat Configuration For Eclipse Server  How to configure Eclipse Tomcat Server? I am using Tomcat 6.0v Thanks In Advance   Install tomcat on eclipse 1)First download the tomcat and install it on your hard drive. 2
JSP tomcat hosting
JSP tomcat hosting  Hi, What is JSP tomcat hosting? Thanks  ... application on internet. But if you are using Tomcat to host the applications then the hosting environment is called as jsp tomcat hosting. There are many
Tomcat access to network files
Tomcat access to network files  i have web application which is running on tomcat 6.0, it access network files from JSP. but i am getting an errror. please help
tomcat server - WebSevices
tomcat server  i want to know about installion process of 6.0.16 tomcat server.please give me detailed procedure along with how to set environment variable
Java Spring Hibernate Struts Training 6 SaaS Software Solutions Every Business Owner Should Consider WebServices Study Material What is the use of MySQL, MS SQL in Web Hosting paradigm? What do you understand by Domain Parking? What is difference between UNIX Hosting and Window Hosting? Expalin the Web Hosting Bandwidth/Space/Transfer What do you understand by Virtual Hosting? How to Upload Site Online? How to register domain name for my Company? How to track how many hits my website gets? create plugins to detect suspicious ajax chrome extension what timing attack {practically}??? any one can help me in my Ph.d thesis Accessing your site How to develope web service with exachanging xml message between computers using SOAP How to Convert SOAP Web service to REST Web service In Java ? add a new wcf service code to TFS and make it available to create an MSI. of its How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl. input fields to reject all inconsistent characters in webconfig Search operation in JSP page Where can I find reviews of IT solutions company in India to choose from? help regarding creation of last year project Select Box question Web Services Tutorials What is SOA and Webservices? PHP webdesign Pinting restful webservice request on UI. MaxClients apache httpd.conf max connections Large File reading through Axis2 Web service reg tutorial What is Web Development? Get GMT from IP WEB SERVICES Create a Web Service in Java using Apache Axis2 and Eclipse with Oracle database driven local host sharing on same network compute Internet and Web related questions for Web Master. web technology What is webservices? wifi problem wifi problem Overriding jaxb binding at client side? How to connect one application to some othe application through Rest json Database with dotnet while playing youtube in iphone appliation, coming black screen in iphone project? programming questions Web Analytics Java Runtime Exception: 0x4F4F:524A 0x4120:5445 0x4348:0D0A Restful webservice


Advertisement null