Java J2ee Tutorials

EClipse Directory Structure

Saturday, August 18, 2012


  • WebContent: Regular Web files (HTML, JavaScript, CSS, JSP, images, etc.)
  • WebContent/some-subdirectory: Web files in subdirectory.
  • WebContent/WEB-INF: web.xml (used for servlet mappings)
  • WebContent/WEB-INF/lib: JAR files specific to application.
  • src/(default package): Unpackaged (default package) Java code. Using the default package is generally a bad choice in Web apps.
  • src/somePackage: Java code in somePackage package.
  • Note: You can cut/paste or drag/drop existing files into appropriate locations, but it is hard to drag files into a Java package until you create at least one class first.

Free Career Predictions

0 comments:

Post a Comment