what is Directory Structure of webapplication?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java an assembly language?

668


public class ActionDTO extends GenericDTO implements Serializable,Auditable { // default serial version id, required for serializable classes. public static final String ACTION_SUSPEND = "SPN"; public static final String ACTION_DEREGISTER = "DRR"; public static final String ACTION_REINSTATE = "REI"; private static final long serialVersionUID = 1L; private Long actionId; private long accountId; private Date actionDate; private String actionType; private String remarks; private AccountDTO account; public ActionDTO() { } public ActionDTO(Long accountId, String action, String remarks, String updatedBy) { setAccountId(accountId); setActionType(action); setActionDate(new Date()); setRemarks(remarks); setUpdatedBy(updatedBy); } public Long getActionId() { return this.actionId; } public void setActionId(Long actionId) { this.actionId = actionId; } public long getAccountId() { return this.accountId; } public void setAccountId(long accountId) { this.accountId = accountId; } public Date getActionDate() { return this.actionDate; } public void setActionDate(Date actionDate) { this.actionDate = actionDate; } public String getActionType() { return this.actionType; } public void setActionType(String actionType) { this.actionType = actionType; } public String getRemarks() { return this.remarks; } public void setRemarks(String remarks) { this.remarks = remarks; } // bi-directional many-to-one association to AccountDTO public AccountDTO getAccount() { return this.account; } public void setAccount(AccountDTO account) { this.account = account; } @Override public String toString() { // TODO Auto-generated method stub return null; } } what is the purpose of @Override public String toString()...and what will do here ?

2368


What is setfocusable in java?

803


Which java technology is in demand?

671


Is a relationship java?

670


Define thin client?

680


What is a java ee container?

647


Why class is used in java?

657


What is java application server?

667


What is fatal error?

773


What is the container?

730


What is form-based authentication?

716


Can I run seam in a j2ee environment?

688


How many types of constructors are there in java?

626


What id url?

687