Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Tomcat

Ads

 
 

Share on Google+Share on Google+

Sireesha
Tomcat
1 Answer(s)      6 years and 3 months ago
Posted in : WebSevices

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

Ads
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

Thanks


Ads









Related Tutorials/Questions & Answers:
TOMCAT
TOMCAT  how can we deploy the project in Apache Tomcat
Tomcat
Tomcat  to run one application in tomcat server which files we need.i think jsp,xml,html is sufficient
Advertisements
Tomcat
Tomcat  I am using UBUNTU and I want to install tomcat to run servlet programs
tomcat
tomcat  Is it necessary to restart the server if we change the JDK path in tomcat server?   Yes, Thanks   Yes, Thanks
Tomcat
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
tomcat
the following links: http://www.roseindia.net/quickguide/tomcat/tomcatdownloadinstall.shtml http://www.roseindia.net/web-application-server/tomcat/install
Tomcat
type in the url path of the tomcat to see the output
Tomcat
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
Tomcat
Tomcat  i have a problem in starting tomcat server.. May 12, 2011 12... resolving reference java.io.FileNotFoundException: D:\Workspace\conf\tomcat... Global JNDI Resources javax.naming.NamingException: D:\Workspace\conf\tomcat
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
Version of tomcat>tomcat dependency
List of Version of tomcat>tomcat dependency
Version of tomcat>tomcat-parent dependency
List of Version of tomcat>tomcat-parent dependency
Version of tomcat>stop-tomcat dependency
List of Version of tomcat>stop-tomcat dependency
Version of tomcat>tomcat-ant dependency
List of Version of tomcat>tomcat-ant dependency
Version of tomcat>tomcat_core dependency
List of Version of tomcat>tomcat_core dependency
Version of tomcat>tomcat-coyote dependency
List of Version of tomcat>tomcat-coyote dependency
Version of tomcat>tomcat-http dependency
List of Version of tomcat>tomcat-http dependency
Version of tomcat>tomcat-jk dependency
List of Version of tomcat>tomcat-jk dependency
Version of tomcat>tomcat-juli dependency
List of Version of tomcat>tomcat-juli dependency
Version of tomcat>tomcat_modules dependency
List of Version of tomcat>tomcat_modules dependency
Version of tomcat>tomcat-ajp dependency
List of Version of tomcat>tomcat-ajp dependency
Version of tomcat>tomcat-apr dependency
List of Version of tomcat>tomcat-apr dependency
Version of tomcat>tomcat-jni dependency
List of Version of tomcat>tomcat-jni dependency
Version of tomcat>tomcat-naming dependency
List of Version of tomcat>tomcat-naming dependency
Version of tomcat>tomcat-util dependency
List of Version of tomcat>tomcat-util dependency
Version of tomcat>tomcat-warp dependency
List of Version of tomcat>tomcat-warp dependency
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 problem
tomcat problem  error like requested(rootdirectory/urlpattern) resources are not available getting while running servlet on tomcatserver
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