Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to run jsp file in tomcat

 
swichika reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am new to tomcat server.i have installed tomcat3.2.2.
i have jsp file.i dont know where to keep this source file and how to run.
can any one help me

thanks in advance
bye
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is with Tomcat 5 but it should be similar. Under the tomcat folder there should be a web apps folder. Any folder under here is a separate web application. JSP files will be placed in this folder. There should be an example application folder that has jsp files in them.
 
swichika reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,


i did what all u said but i dint work out.

Is there any alternative?

bye
 
Andris Jekabsons
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your classpath set correctly? Are you getting any error messages? Do Tomcat examples work?
I use Tomcat 5 and I know a few things are different than on 3.2 (though the folder structure should mostly be the same).
 
swichika reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,


As u guessed.....nothing is working here.
i mean yesterday i was able to run servlets and was successful. there were no error messages.
but now even for example servlets there is an error message displayed in browser " NOT FOUND (404) "

even the tomcat new startup window is getting closed in few seconds.

can u tell me what might be the problem.

thanks in advance

waiting eagerly for a response
 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swichika,

first try to figure out the problem.
You are not able to see the error as the tomcat startup window is getting closed. Open the command prompt and run the startup batch file from there and redirect the output to a text file. then find out what that text file says.

ie you need to do

startup > temp.txt

this temp file should specify what the error may be!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I asked why you were using such an old version of Tomcat in your other thread. Since this one already has more responses, I'll elaborate here.

Both the servlet/jsp specs and Tomcat have changed in subtle ways since Tomcat 3x. The basic concepts are the same but a lot of the examples you will find on the web won't run in 3x. Also, most people who are activly working with servlets and JSP have either learned on a more recent version or have moved past the 3x version so long ago that they aren't going to remember all the small differences.

Unless you have a compelling reason to stay with 3x, I would start by downloading and installing the latest stable version.
 
swichika reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Mr. Ben,

ok i will install the latest version and see try.

thanQ

bye
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to move this to the Apache/Tomcat forum.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic