Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to write the configuration file of struts application
if any one had simple struts application please it to me



how to write the configuration file of struts application if any one had simple struts application ..

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

Post New Answer

More Struts Interview Questions

What is actioninvocation?

0 Answers  


wahts the diif between Mvc1 and Mvc2?

3 Answers   Wipro,


What are different ways to create Action classes in Struts2?

0 Answers  


Are struts and shocks the same?

0 Answers  


What is the role of action class?

0 Answers  


How to use forward action to restrict a strut application to mvc?

0 Answers  


How can we integrate log4j in Struts2 application?

0 Answers  


What is the default suffix for struts2 action uri ?

0 Answers  


What is struts and why it is used?

0 Answers  


Where can I get a copy of struts?

0 Answers  


Is it possible to create mulitple instance of one Action Class in struts?

10 Answers   Satyam,


What are action errors and error?

0 Answers  


Categories