struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject cvs commit: jakarta-struts/web/examples/exercise index.html
Date Tue, 20 Jan 2004 03:57:03 GMT
husted      2004/01/19 19:57:02

  Modified:    web/examples/WEB-INF/exercise struts-config.xml
               web/examples/exercise index.html
  Log:
  Add tests for forward.redirect property, pursant to #26192 "forward element redirect and
className attributes not honored".
  
  Revision  Changes    Path
  1.6       +16 -0     jakarta-struts/web/examples/WEB-INF/exercise/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/examples/WEB-INF/exercise/struts-config.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- struts-config.xml	18 Jan 2004 13:14:03 -0000	1.5
  +++ struts-config.xml	20 Jan 2004 03:57:02 -0000	1.6
  @@ -45,6 +45,22 @@
       <action path="/logic-redirect-test-forward" forward="/logic-redirect-test-forward.jsp"
/>
       <action path="/logic-redirect-test-page" forward="/logic-redirect-test-page.jsp"
/>
   
  +    <action path="/forward-redirect-default" type="org.apache.struts.webapp.exercise.SuccessAction"
>
  +        <forward name="success" path="/" redirect="true" contextRelative="true" />
  +    </action>
  +    <action path="/forward-redirect-default-module" type="org.apache.struts.webapp.exercise.SuccessAction"
>
  +        <forward name="success" path="/" redirect="true" />
  +    </action>
  +    <action path="/forward-redirect-path" type="org.apache.struts.webapp.exercise.SuccessAction"
>
  +        <forward name="success" path="/html-link.do" redirect="true" />
  +    </action>
  +
  +      <!-- :FIXME: We could allow forward to use an action attribute
  +      <action path="/forward-redirect-default-module" type="org.apache.struts.webapp.exercise.SuccessAction"
>
  +          <forward name="success" action="/html-link" redirect="true" />
  +      </action>
  +      -->
  +
       <!-- Locale Action -->
       <action path="/locale" type="org.apache.struts.webapp.validator.LocaleAction" name="localeForm"
scope="request">
         <forward name="success" path="/welcome.do" />
  
  
  
  1.3       +8 -0      jakarta-struts/web/examples/exercise/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/examples/exercise/index.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.html	16 Jan 2004 03:51:31 -0000	1.2
  +++ index.html	20 Jan 2004 03:57:02 -0000	1.3
  @@ -82,5 +82,13 @@
   
     <p>[:TODO:]</p>
   
  +  <h3>Other tests</h3>
  +
  +  <ul>
  +    <li><a href="forward-redirect-default.do">Use an ActionForward to redirect
to the default page for the application ("/")</a></li>
  +    <li><a href="forward-redirect-default-module.do">Use an ActionForward to
redirect to the default page for this module ("/$module/")</a></li>
  +    <li><a href="forward-redirect-path.do">Use an ActionForward to redirect
another path ("/html-link.do")</a></li>
  +  </ul>
  +
   </body>
   </html>
  
  
  

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


Mime
View raw message