• 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

Starting new project Tomcat

 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have tomcat tomcat 4.0.1 running on my box. Now I need to start a new project (which include JSP + Servlets + JavaBeans). I have created a new folder (called project) under
c:\tomcat\webapps\project
Now, How does this folder structure should look like? Or can I just place all my files (jsp+beans+servlets) inside this folder (i don't think so.. )
Do I need to create a new folder inside project called WEB-INF??
thanksssss
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Andres Gonzalez:
Do I need to create a new folder inside project called WEB-INF??

Yes. This is the structure I use:
webapps
--project
----jsp (put your JSPs here or directly under project)
----WEB-INF
------lib (application jar files)
------classes (servlets and java classes)
Put your web.xml file under the WEB-INF directory.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks thomas... do you have a particular format for creating the web.xml file? I mean, what is the sintax?, what do I type in?, etc... I'd appreciate if you have any resource so I can read...
thanks again
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sample web.xml:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/web.xml.txt
 
Whatever you say buddy! And I believe this tiny ad too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic