• 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

jsp & tomcat

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i'm a jsp beginner.how should i modify my web.xml file to run a jsp program using tomcat? where should i place my jsp files?
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
in the <tomcat>/webapps/ directory, there are several contextes (test, examples) with each it's own web.xml file. you can add a directory (eg. named "tony") in the webapps of tomcat. just build the same structure as in the other contexts. and take a look at their web.xml file.
then modyfy the server.xml in <tomcat>/conf and add your own context (just copy the context of "test" and replace "test" in the path and the docBase with "tomy". path is the name you have to type on the server (eg. localhost/tony) to reach your context and docbase is the path to the files on local file system.
for the web.xml take a look to the web.xml in /example.

karl
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For a quick-start know-nothing test, just drop the JSP into the same directory as the webapps JSPs. Once you're ready to set up something more realistic, the following short set of instructions should be about all you need to know:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic