what is Directory Structure of webapplication?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Give some advantages of orm (object-relational mapping)?
Why java is interpreted language?
Difference between treemap & sortedset
What is devops in java?
What is instance in java?
What is java developer?
Which one should we prefer while using bean ? managed bean annotation or faces-config
What is java naming and directory service?
What does java awt stand for?
What is repaint in java?
What is meant by j2ee?
What is sandbox in java?