• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to run jsp file in tomcat

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,


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

Is there any alternative?

bye
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello Mr. Ben,

ok i will install the latest version and see try.

thanQ

bye
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going to move this to the Apache/Tomcat forum.

Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic