On 11/5/06, jiangshachina <[EMAIL PROTECTED]> wrote:


Generally, in Web application project, the Java class files would be put
into
WEB-INF/classes folder.


Just out of curiosity, why do you want to do this?  Doing this seems likely
make loading your classes a little bit slower.

Now, I want the classes to be archived and putted into WEB-INF/lib folder.
And the classes should be classified and putted into different
sub-directories under WEB-INF/lib respectively.
For example, WEB-INF/lib/data/(some jars related to Database operations),
WEB-INF/lib/user/(some jars related to user management), etc.


You might want to make sure that your servlet container will actually load
the JAR files if you do this.  The spec only requires that JAR files
directly in WEB-INF/lib be loaded, not from subdirectories.

a cup of Java, cheers!
Sha Jiang


Craig

Reply via email to