RE: Where to put Java files/classes
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
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
Where to put Java files/classes
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 _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Where to put Java files/classes
you put any classes and packages here: /webapps/your-app-name/WEB-INF/classes/ jar files (such as mm.mysql) go here: /webapps/your-app-name/WEB-INF/lib/ Core Servlets and JavaServer Pages by Marty Hall explains all the details related to the basic issues of configuration (and more advanced issues, too). Garrett --- Ryan Heusinkveld [EMAIL PROTECTED] 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 _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org = http://dhtmlkitchen.com/ JSP | Servlets | DHTML Garrett Needs A Job __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org