Chapter 4.1 Standard Directory

Organize your web application’s document root directory with the following contents:

  • .html, .jsp, etc. – Ensure that the HTML and JSP pages, along with other files are visible to the client browser (such as JavaScript, stylesheet files, and images) for your application. You may opt to divide these files into a subdirectory hierarchy.
  • /WEB-INF/web.xml – This is the Web Application Deployment Descriptor which describes the servlets, components, any initialization parameters, and container-managed security constraints enforced by the server.
  • /WEB-INF/classes/ – This directory contains the required Java class files, such as servlet and non-servlet classes, for the application.
  • /WEB-INF/lib/ – This directory contains JAR files which includes the required Java class files (and associated resources).

  • Currently 3.04/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
  Flag Inappropriate Content 0 comments