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 |
for example we are login into the irctc server from there it will go to the selected bank and deduct amount and come back to the irctc. so if we are developing this in java means will it be run on the same session. but as per my knowledge bank is separate and irctc is separate URL's so it will use two different sessions then how it is maintaining same session through out application and even it uses the payment gateway? how it is working can any one help me on that??
What is initialization parameter?
What are the advantages in the use of spring for application development?
Every field has setter and getter methods.what is happening in this methods.
What is basic authentication?
Define hashtable in j2ee?
What is java full stack developer?
Why frameworks are used in java?
What is event and listener in java?
Possible ways for debugging java ,javascript,jsp and servlet. Can we use System.out.println debugging java.
What is urn?
is it possible to create single instance of java class per session in web application