Hi All, can anybody explain me the foll struts-config.xml...?? Especially <set-property> tag supposed to do ...?? I've picked up this file from struts workflow example.
struts-config.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <!-- This is the Struts configuration file for the workflow example application. --> <struts-config> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <!-- Login form bean --> <form-bean name="loginForm" type="com.livinglogic.struts.workflow.test.LoginForm"/> </form-beans> <!-- ========== Global Forward Definitions ============================== --> <global-forwards> <!-- this happens, when an authentication exception is thrown --> <forward name="authenticationexception" path="/authenticationException.jspp" /> <!-- this happens, when we are in maintenance mode, i. e. debug level is -1 --> <forward name="maintenance" path="/maintenance.jspp" /> <!-- this happens, if the workflow data do not match --> <forward name="controlflowexception" path="/controlFlowException.jspp"/> <!-- this happens, when any kind of exception occurs in one of the actions and debug level is 0 --> <forward name="exception" path="/exception.jspp" /> </global-forwards> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <!-- ===== Login/logout workflow ===== --> <!-- Display login --> <action path="/displayLoginAction" type="com.livinglogic.struts.workflow.SuccessAction"> <set-property property="primaryWorkflow" value="login" /> <set-property property="newState" value="1" /> <set-property property="nextState" value="2" /> <forward name="success" path="/login.jspp" /> </action> <!-- Execute login --> <action path="/loginAction" type="com.livinglogic.struts.workflow.test.LoginAction" name="loginForm" scope="request" input="/login.jspp"> <set-property property="primaryWorkflow" value="login" /> <set-property property="prevState" value="1" /> <set-property property="newState" value="2" /> <set-property property="endWorkflow" value="true" /> <forward name="success" path="/displayInHomeAction.do" /> </action> <!-- Execute logout --> <action path="/logoutAction" type="com.livinglogic.struts.workflow.test.LogoutAction"> <forward name="success" path="/displayLoginAction.do" /> </action> <!-- Display the main page after login --> <action path="/displayInHomeAction" type="com.livinglogic.struts.workflow.SuccessAction"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/beginWf1Transition" type="com.livinglogic.struts.workflow.test.Wf1Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf1" /> <set-property property="newState" value="1" /> <set-property property="nextState" value="2" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/wf1St2Transition" type="com.livinglogic.struts.workflow.test.Wf1Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf1" /> <set-property property="prevState" value="1" /> <set-property property="newState" value="2" /> <set-property property="nextState" value="2" /> <set-property property="nextState" value="3" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/wf1St2Loop" type="com.livinglogic.struts.workflow.test.Wf1Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf1" /> <set-property property="prevState" value="2" /> <set-property property="nextState" value="2" /> <set-property property="nextState" value="3" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/wf1St3Transition" type="com.livinglogic.struts.workflow.test.Wf1Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf1" /> <set-property property="newState" value="3" /> <set-property property="nextState" value="0" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/endWf1Transition" type="com.livinglogic.struts.workflow.test.Wf1Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf1" /> <set-property property="prevState" value="3" /> <set-property property="newState" value="0" /> <set-property property="endWorkflow" value="true" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/beginWf2Transition" type="com.livinglogic.struts.workflow.test.Wf2Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf2" /> <set-property property="newState" value="1" /> <set-property property="nextState" value="2" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/wf2St2Transition" type="com.livinglogic.struts.workflow.test.Wf2Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf2" /> <set-property property="prevState" value="1" /> <set-property property="newState" value="2" /> <set-property property="nextState" value="3" /> <set-property property="nextPath" value="/beginWf3Transition" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/wf2St3Transition" type="com.livinglogic.struts.workflow.test.Wf2Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf2" /> <set-property property="prevState" value="2" /> <set-property property="newState" value="3" /> <set-property property="nextState" value="0" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/endWf2Transition" type="com.livinglogic.struts.workflow.test.Wf2Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf2" /> <set-property property="prevState" value="3" /> <set-property property="newState" value="0" /> <set-property property="endWorkflow" value="true" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/beginWf3Transition" type="com.livinglogic.struts.workflow.test.Wf3Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf3" /> <set-property property="newState" value="1" /> <set-property property="nextState" value="2" /> <set-property property="secondaryWorkflow" value="wf2" /> <set-property property="prevState" value="2" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/wf3St2Transition" type="com.livinglogic.struts.workflow.test.Wf3Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf3" /> <set-property property="prevState" value="1" /> <set-property property="newState" value="2" /> <set-property property="nextPath" value="/endWf3Transition" /> <forward name="success" path="/inHome.jspp" /> </action> <action path="/endWf3Transition" type="com.livinglogic.struts.workflow.test.Wf2Action"> <set-property property="authtype" value="com.livinglogic.struts.workflow.test.Authentication" /> <set-property property="primaryWorkflow" value="wf2" /> <set-property property="newState" value="3" /> <set-property property="nextState" value="0" /> <set-property property="secondaryWorkflow" value="wf3" /> <set-property property="prevState" value="2" /> <set-property property="endWorkflow" value="true" /> <forward name="success" path="/inHome.jspp" /> </action> </action-mappings> </struts-config> ----anjali Power your enterprise with custom solutions in eLearning and Knowledge Management from NIIT - Knowledge Solutions. For details visit our website http://www.ksb.niit.com ___________________NOTICE____________________________ This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>