Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat baby: Directory, Classpath ?

Status
Not open for further replies.

neltan

Programmer
Nov 4, 2002
82
AU
Hi,
I'm a new baby in using Tomcat. Here are my question.

1. How can I create virtual directory in Tomcat for different application?

2. What should be the directory structure within an application? (e.g. WEB-INF, classes)
Within an application, should I put JSP and Servlet in the same folder? Otherwise, how should I place them?

3. How should I set the classpath? Error when complie "javac HelloWorld.java"
Error -> import javax.servlet.*;
I've set classpath already! Is it correct? CLASSPATH=.:$JAVA_HOME/lib:$CATALINA_HOME/common/lib:$CATALINA_HOME/server:

Best Regards,
neltan
 
javax.servlet is in the servlet.jar under one of the libs in Tomcat, include it in the classpath.

As for directory structure, all apps are in the webapps directory and have the same structure as teh examples folder, take a look at it.

Enjoy,
alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top