Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : the folder to keep Servlet classes Signup · Login
Author Thread
the folder to keep Servlet classes
Posted in tutorial: Introduction to Java Servlets, Developing your first Java Servlet
·  hungmusic
User
Joined: 21 Nov 2002
Total Posts: 3
the folder to keep Servlet classes
Posted: 3 Dec 2002
Create a new text file and save it as 'TestServlet.java' in
Hi there,

It's me again, newbie. I hava a question about the folder to keep Servlet classes. In jakarta-tomcat-4.0-b5 the \WEB-INF\classes is the folder for Servlet classes. I try a java servlet jsdk2.1 and it has a different folder names \WEB-INF\servlets to keep servlet classes.
I think that there should be somewhere to config the folder to keep servlet classes. I don't know what i'm thinking is right. Please help me. Thanks a lot.

Newbie
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 547
Re: the folder to keep Servlet classes
Posted: 4 Dec 2002
Don't use jsdk2.1, it is outdated and uses an old and deprecated method of placing the .class files under /WEB-INF/servlets folder.

The current and industry-wide standard method is to place .class files under /WEB-INF/classes folder. This is not specific for Tomcat, any current Servlet container e.g. Resin, Orion etc expects .class files to be under /WEB-INF/classes folder.

And there is no standard option to use any other folder other than /WEB-INF/classes to keep class files, although there is an option to do that in Resin ( which you shouldn't do because there is no reason why you'd want to place them anywhere else besides /WEB-INF/classes folder ).

Faisal Khan.
Stardeveloper.com

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.