• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting new project Tomcat

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • 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
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • 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
  • 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
Ranch Hand
Posts: 13974
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic