what is Directory Structure of webapplication?

Answer Posted / dhanabir

Directory Structure

SampleApplication(Root)
-->jsp(all the JSP pages under this folder)
like SampleApplication/jsp/common/Header.jsp
like SampleApplication/jsp/common/LeftNevigator.jsp
like SampleApplication/jsp/common/Footer.jsp
like SampleApplication/jsp/Employee/AddEmployee.jsp

-->html(All the necessary html pages under this folder)
like SampleApplication/html/Warning.html
-->theme(can put CSS file)
like SampleApplication/theme/Theme.css

-->javascripts(All the Javascript files under this folder)
like SampleApplication/javascripts/Calander.js

-->images(All the image pictures under this folder)
like SampleApplication/images/logo.gif

-->src/com (All the java source codes under this folder
like SampleApplication/src/com/beans/EmployeeBean.java
(all the simple java bean which acts as DTO)
like
SampleApplication/src/com/servlets/EmployeeServlet.java(all
the controller java servlets )
like
SampleApplication/src/com/common/ConnectionBroker.java(all
the modeldata java )
like SampleApplication/src/com/common/EmployeeData.java
(all the modeldata java using DTO )

com:-package,bean:-bean folder

SampleApplication/src/resources/ApplicatioResources.properti
es

-->WEB-INF/classes(the outputs compile classes of the
corresponding java files in src/com )
like SampleApplication/src/com/beans/EmployeeBean.class
(all the simple java bean which acts as DTO)
like
SampleApplication/src/com/servlets/EmployeeServlet.class
(all the controller java servlets )
like
SampleApplication/src/com/common/ConnectionBroker.class(all
the modeldata java )
like SampleApplication/src/com/common/EmployeeData.class
(all the modeldata java using DTO )

-->WEB-INF/lib(all the required jar files)
like SampleApplication/WEB-INF/lib/class12.jar

-->WEB-INF/web.xml(Deployment descriptor)

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is javabeans component?

529


What is difference between j2ee and java?

498


J2ee is a container centric architecture. Explain.

518


What is ejb container provider?

462


What is java api for xml processing (jaxp)?

556






What is asant?

571


What is a j2ee container?

583


Describe action form?

525


What is the ear file?

539


What is java ee architecture?

502


What is jradiobutton in java?

516


Which server is best for java?

455


Is java still slow?

498


What is j2ee product?

491


What does application client module contain?

549