File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Starting new project Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Starting new project Tomcat" Watch "Starting new project Tomcat" New topic
Author

Starting new project Tomcat

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
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


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
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.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
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

Joined: May 05, 2000
Posts: 13974
Sample web.xml:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/web.xml.txt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting new project Tomcat