This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I posted an issue a few days ago and received some very good responses - so thank you all.
My primary complaint was/is I had import statements referencing classes under WEB_INF without any source code.
The solution was to place .jar files containing the ready-compiled classes into my classpath. Subsequently - you can use normal import for the compiled classes. My question - when unzipping the application - would / should the jar files be reflected in the WEB-INF/lib path? Could they be placed elsewhere within the app?
I take it you are referring to deploying the war file.
When the war is exploded, the jar still remains under WEB-INF/lib which is automatically on the class path. The jars placed there will be picked up by default.
'Unzipping the application' - Are you referring to unzipping WAR/EAR file. In that case, yes the jars will be placed inside the /WEB-INF directory of the extracted one.
The J2EE IDEs(eclipse, netbeans etc) however support, to have java libraries (.jars) to be linked with the code base by adding the .jar to the build path. But it is advisable to have it in WEB-INF if the jar is specific for your application, the reason being when you export the Source code to WAR, it will include only the jars inside your WEB-INF directory.