how to write the configuration file of struts application
if any one had simple struts application please it to me
Answer / surendra choudhury
//Sample struts-config.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration
1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-
config_1_1.dtd">
<struts-config> Form bean Definitions
<form-beans>
<form-bean name="CustomerForm"
type="mybank.example.CustomerForm"/>
<form-bean name="LogonForm"
type="mybank.example.LogonForm"/>
</form-beans> Global Forward Definitions
<global-forwards>
<forward name="logon" path="/logon.jsp"/>
<forward name="logoff" path="/logoff.do"/>
</global-forwards> Action Mappings
<action-mappings>
<action path="/submitDetailForm"
type="mybank.example.CustomerAction"
name="CustomerForm"
scope="request"
validate="true"
input="/CustomerDetailForm.jsp">
<forward name="success"
path="/ThankYou.jsp"
redirect=”true” />
<forward name="failure"
path="/Failure.jsp" />
</action>
<action path=”/logoff” parameter=”/logoff.jsp”
type=”org.apache.struts.action.ForwardAction” />
</action-mappings> Controller Configuration
<controller
processorClass="org.apache.struts.action.RequestProcessor" /
>
<message-resources
parameter="mybank.ApplicationResources"/>
</struts-config> Message Resource Definition
| Is This Answer Correct ? | 7 Yes | 1 No |
what is project architecture?give brief explanation about project architecture?
3 Answers CTS, Etisalat, IBM, Infinite Computer Solutions, Mphasis,
where you will implement the tiles in struts?
in struts how to use hibernate with struts>
What is the use of web xml in struts2?
What are the core classes of the struts framework?
What is the purpose of dispatcher result type?
project architechture in java
3 Answers AC, IBM, INDUS, Satyam,
What is strut action mapping?
when connecting with the database,if database server is down,ho can we handle this exception in struts,how can we send error message to the user?
What is struts2 framework?
how to write uploadphoto in the insert update delete using struts? write code struts and jsp jdbc
What do you mean by the abstract package in struts2, and what is its utilization?