Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

what is jvm? how can it is useful in java?

3 Answers  


What is the use of RequestProcessor, if we are having ActionServlet in struts

4 Answers   Oracle,


Which compiler is used in java?

0 Answers  


Every field has setter and getter methods.what is happening in this methods.

2 Answers  


i developed a Stateless Session bean program.And created a client by a common java class as class m {p s v m(String s[]){....}} And i called the bean deployed in weblogic.from cmd prompt And that run. mind it i have to set setenv,seting classpath for that bean jar file before compile and run it. ok when i do a servlet programme deployed in tomcat and call that bean then it give classdefnotfoundException and NoInitialContext like this.So how i sucessfully do this? Ok when i call that bean from java class from the console like i previously told, if i don't set setenv i found the same error on the cmd prompt. pls help to get out of it

2 Answers  






What is sandbox in java?

0 Answers  


What is java advanced?

0 Answers  


In DAO we are writting sql queries , how it is possible with creating and closing database connections.

0 Answers  


i want test pattern of zylog company and some examples also

0 Answers  


What are j2ee concepts?

0 Answers  


What are the most important topics in java?

0 Answers  


What are the topics in j2ee?

0 Answers  






Categories