ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  J2EE
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is  Directory Structure of webapplication?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is Directory Structure of webapplication?
Answer
# 1
(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 ?    3 Yes 3 No
Neeraj_passion2001
[SOWSIA INDIA PVT LTD]
 
  Re: what is Directory Structure of webapplication?
Answer
# 2
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 ?    7 Yes 0 No
Baiju Viswam
 
 
 
  Re: what is Directory Structure of webapplication?
Answer
# 3
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 ?    6 Yes 0 No
Nirmala
 
  Re: what is Directory Structure of webapplication?
Answer
# 4
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 ?    4 Yes 0 No
Dhanabir
 
  Re: what is Directory Structure of webapplication?
Answer
# 5
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 ?    2 Yes 0 No
Mukesh Jha
 
  Re: what is Directory Structure of webapplication?
Answer
# 6
WEB-INF -root directory
       |
        --classes dir
        --lib dir
        --src dir
        --web.xml
    |
    --html
    --dhtml
    --jsp etc...
 
Is This Answer Correct ?    2 Yes 2 No
Suresh
 

 
 
 
Other J2EE Interview Questions
 
  Question Asked @ Answers
 
How can we serialize a jsp page. CSC2
to update a batch in a table in jdbc which method of statement object is used  1
Name the Implicit variable which is used to access other implicit objectes present in JSP. AZTEC6
what is defect. Is it runtime exception or comiletime exception L&T1
i have to create an application with session.during that session a timer will be started & show the time in second upto the session expired.So that i can know how many time i in that session. Hint:-i m hinted that it will coded with javascript Wipro3
How to achieve multiple inheretence in java.I need an example. how we achieve.  1
how many external variables are there in jsp ?  1
what is external varibles in jsp? Verizon1
Hello frds .recently I've got a call for the test in infosys .iam having 1.5 yr exp in java pltfrm.plz can anyone tell the main process( in detail) for infosys experienced professionals  1
What is the difference between sendRedirect() and forward()? in what situations do we have to use send redirect() instead of forward(). Mind-Tree10
why we are using XML? TCS10
what is Directory Structure of webapplication? CTS6
to update a batch in a table in jdbc which method of statement object is used. Polaris4
can someone tell me how does preparedstatement works? its an interface and where is the implementation? Satyam3
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  1
what is the purpose and activity of SessionFactory in hibernate?  2
what is the difference between Tomcat 4 & Tomcat 5? TCS4
what is the main use of the RequestDispatch object, how we this in realtime project  3
Explain about J2EE Application Architecture  1
Hi friends, can u explain Transparent Persistence in hibernate with sample code.  1
 
For more J2EE Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com