Monday, 7 October 2013

Directory Structure

Servlet Directory Structure


Hello friends; Hitesh is here today I will show you how to create servlet directory structure.
  • While creating web applications, we should follow the standard directory structure, provided by the sum microsystem.
  • Sun microsystem has given this directory structure to make a web application as server independent. A web application principle is to write once deploy anywhere (WODA).
  • According to the directory structure, an application contains a root folder with any name.
  • Under root folder, a subfolder is required with the name “WEB-INF”.
  • Under “WEB-INF” two subfolder are required classes and lib.
directory structure

  • In “WEB-INF” folder put web.xml files.
  • In classes folder put all the .class files.
  • In lib folder put ojdbc14.jar.
  • In root folder we put jsp, .gif (images), all html files.

No comments:

Post a Comment