Classes that you develop for use with your .jsp pages are normally placed in the $CATALINA_HOME/webapps/yourwebapp/WEB-INF/classes folder. This is the standard place for classes and this requirement is documented in the Java Servlet Specification Version 2.3, section 9.5, which is available for download from java.sun.com. The WEB-INF/classes folder is automatically added to your webapp classpath by Tomcat when your webapp is deployed.
-Mike Schulz -----Original Message----- From: Andreas Probst [mailto:andpro77@;gmx.net] Sent: Sunday, October 27, 2002 3:01 AM To: Tomcat Users List Subject: Re: Where to put Java files/classes Hi Ryan, you shouldn't have your source files mixed up with Tomcat. You should rather develop somewhere else and use a build tool like Jakarta Ant to deploy your app to Tomcat. Craig's App Developer Guide at tomcathome/webapps/tomcat-docs/appdev/index.html gives a very good introduction into the development process. Good luck. Andreas On 26 Oct 2002 at 15:17, Ryan Heusinkveld wrote: > Hi all, > > I am trying to configure Tomcat to allow me to import and use classes that I > have created within my jsp pages. I imported them within my page, but I get > the error that the classes cannot be found. I created a directory under my > $CATALINA_HOME called 'src', and packaged my classes accordingly under > there. What do I need to do to tell Tomcat that the classes are under > there? Should I be placing them somewhere else? > Any help is appreciated. > > -Ryan > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
