what is Directory Structure of webapplication?

Answers were Sorted based on User's Feedback



what is Directory Structure of webapplication?..

Answer / baiju viswam

The most common hierarchy is (eclipse IDE)

applnroot -
+src (your source files in packages)
build
libraries added by ide
-WebContent
+images
+css
+scripts (javascripts)
index.htm (index page)
-WEB-INF
+lib (libray files used)
+jsp (jsp's)
web.xml (deployment descriptor)
classes (generated class files)

Is This Answer Correct ?    22 Yes 4 No

what is Directory Structure of webapplication?..

Answer / nirmala

webcontent contains root folder which inturn contains
all JSP ,HTML besides ur WEB-INF ,

Then WEB-INF contains classes, lib and web.xml which is
nothing but a deployment descriptor

Is This Answer Correct ?    10 Yes 2 No

what is Directory Structure of webapplication?..

Answer / 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

what is Directory Structure of webapplication?..

Answer / radhi

SRC
|
| ----Package1
} |_ _Classes
| |_ _Bean Classes
| |_ _ Util
| |_ _Property files
|
|----Package2
|_ _Classes
|_ _Bean Classes
|_ _ Util
|_ _Property files
WEBCONTENT
|
|_ _ _WEB-INF -root directory
| |
| --classes dir
| --lib dir
| --web.xml
|
| --html
--dhtml
--jsp etc...

Is This Answer Correct ?    6 Yes 1 No

what is Directory Structure of webapplication?..

Answer / mukesh jha

root directory .. contains all html ,jsps , pictures
subdirectory WEB_INF
contains subdirectory classes , lib ,tlds
and web.xml.
classes -- all class file .
lib-- all jar file .
tld-- all tld file for custom tag.
web.xml--- for deployment of servlet and other
configuration file.
root directory can be your directory name. wich
come on url as path. like root is maukesh.
then url will . mukesh/login.jsp etc.
mukesh

Is This Answer Correct ?    4 Yes 1 No

what is Directory Structure of webapplication?..

Answer / neeraj_passion2001

(WEB-ROOT FOLDER) AND ALL HTML AND JSP are at same level
and WEB-ROOT CONTAINS A CLASSES FOLDER WHERE WE KEPT SERVLET
CLASSES AND IN WEB-ROOT ANOTHER FILE WEB.XML IS ALSO DEFINED.

Is This Answer Correct ?    9 Yes 7 No

what is Directory Structure of webapplication?..

Answer / suresh

WEB-INF -root directory
|
--classes dir
--lib dir
--src dir
--web.xml
|
--html
--dhtml
--jsp etc...

Is This Answer Correct ?    8 Yes 6 No

what is Directory Structure of webapplication?..

Answer / sreenivasulu

WEB-INF -root directory
|
--classes dir
--lib dir
--src dir
--web.xml
|
--html
--dhtml
--jsp etc...

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More J2EE Interview Questions

Give some advantages of orm (object-relational mapping)?

0 Answers  


Why java is interpreted language?

0 Answers  


Difference between treemap & sortedset

3 Answers   Oracle,


What is devops in java?

0 Answers  


What is instance in java?

0 Answers  






What is java developer?

0 Answers  


Which one should we prefer while using bean ? managed bean annotation or faces-config

1 Answers  


What is java naming and directory service?

0 Answers  


What does java awt stand for?

0 Answers  


What is repaint in java?

0 Answers  


What is meant by j2ee?

0 Answers  


What is sandbox in java?

0 Answers  


Categories