aspose file tools *
The moose likes Tomcat and the fly likes how to run jsp file in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to run jsp file in tomcat" Watch "how to run jsp file in tomcat" New topic
Author

how to run jsp file in tomcat

swichika reddy
Greenhorn

Joined: Dec 28, 2004
Posts: 20
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

Joined: Feb 18, 2003
Posts: 166
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.


Jeremy Wilson
swichika reddy
Greenhorn

Joined: Dec 28, 2004
Posts: 20
hello,


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

Is there any alternative?

bye
Andris Jekabsons
Ranch Hand

Joined: Jan 20, 2004
Posts: 82
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

Joined: Dec 28, 2004
Posts: 20
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

Joined: Mar 06, 2002
Posts: 220
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
swichika reddy
Greenhorn

Joined: Dec 28, 2004
Posts: 20
hello Mr. Ben,

ok i will install the latest version and see try.

thanQ

bye
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

I am going to move this to the Apache/Tomcat forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to run jsp file in tomcat