You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/02/14 21:51:56 UTC

cvs commit: jakarta-struts/web/examples/WEB-INF struts-config.xml

husted      2004/02/14 12:51:56

  Modified:    web/examples/WEB-INF struts-config.xml
  Log:
  Add usage example of a custom ActionForward.
  
  Revision  Changes    Path
  1.5       +6 -3      jakarta-struts/web/examples/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/examples/WEB-INF/struts-config.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- struts-config.xml	13 Feb 2004 11:07:54 -0000	1.4
  +++ struts-config.xml	14 Feb 2004 20:51:56 -0000	1.5
  @@ -10,8 +10,11 @@
     <form-beans />
     <global-exceptions />
     <global-forwards>
  -    <forward name="welcome" path="/welcome.do" />
  -  </global-forwards>
  +      <!-- utilize a custom ActionForward as an example only -->
  +    <forward name="welcome" path="/welcome.do" className="org.apache.struts.webapp.examples.CustomActionForward">
  +         <set-property property="example" value="EXAMPLE" />
  +     </forward>
  +   </global-forwards>
     <action-mappings>
       <action path="/welcome" forward="/welcome.jsp" />
     </action-mappings>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org