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/01/17 05:15:01 UTC
cvs commit: jakarta-struts/web/examples/exercise html-link.jsp
husted 2004/01/16 20:15:00
Modified: web/examples/WEB-INF/exercise struts-config.xml
web/examples/exercise html-link.jsp
Log:
To hmlt:link page, add test for redirecting to the "default" path ("/").
Revision Changes Path
1.4 +1 -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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- struts-config.xml 16 Jan 2004 04:55:00 -0000 1.3
+++ struts-config.xml 17 Jan 2004 04:15:00 -0000 1.4
@@ -14,6 +14,7 @@
<forward name="absolute" path="http://jakarta.apache.org/struts" />
<forward name="context-relative" path="/welcome.do" contextRelative="true" />
<forward name="relative" path="/welcome.do" />
+ <forward name="redirect-default" path="/" redirect="true" />
<forward name="logic-forward" path="/logic-forward.do" />
</global-forwards>
<action-mappings>
1.2 +3 -0 jakarta-struts/web/examples/exercise/html-link.jsp
Index: html-link.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/web/examples/exercise/html-link.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- html-link.jsp 8 Jan 2004 16:20:19 -0000 1.1
+++ html-link.jsp 17 Jan 2004 04:15:00 -0000 1.2
@@ -139,6 +139,9 @@
<li>
<html:link forward="absolute">Struts website</html:link>
</li>
+ <li>
+ <html:link forward="redirect-default">Redirect to the default page ("/")</html:link>
+ </li>
</ul>
</body>
</html:html>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org