Loading
struts config.xml

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is "struts-config.xml" ?


Ans)

Below is the sample Struts-Config XML

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>

  <data-sources>
  </data-sources>
 
  <form-beans>
    <form-bean name="formBeanUser" type="com.yourApp.formbean.FormBeanUser"/>
    <form-bean name="formBeanCategory" type="com.yourApp.formbean.FormBeanCategory"/>
    <form-bean name="formBeanProduct" type="com.yourApp.formbean.FormBeanProduct"/>
    <form-bean name="formBeanCheckout" type="com.yourApp.formbean.FormBeanCheckout"/>
  </form-beans>
 
  <global-exceptions>
  </global-exceptions>
 
  <global-forwards>
  </global-forwards>
 
  <action-mappings>
 
    <action path="/actionUserRegister" name="formBeanUser"
     type="com.yourApp.action.ActionUser" scope="request" input="/view/struts/register.jsp">
      <forward name="successRegister" path="/view/struts/framesetHome.jsp"/>
      <forward name="failureRegister" path="/view/struts/register.jsp"/>
      <forward name="error" path="/view/struts/error.jsp"/>
    </action>
   
  </action-mappings>
 
  <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
  <message-resources parameter="com.yourApp.resources.MessageResources"/>

</struts-config>



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

struts config.xml


struts config.xml

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free