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/19 19:45:43 UTC
cvs commit: jakarta-struts/web/examples/exercise html-img.jsp html-link.jsp
husted 2004/02/19 10:45:43
Modified: web/examples/WEB-INF/exercise struts-config.xml
web/examples/exercise html-img.jsp html-link.jsp
Log:
Expand module/contextRelative tests/examples.
Revision Changes Path
1.9 +2 -3 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.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- struts-config.xml 19 Feb 2004 00:09:37 -0000 1.8
+++ struts-config.xml 19 Feb 2004 18:45:42 -0000 1.9
@@ -13,12 +13,11 @@
<global-forwards>
<forward name="absolute" path="http://jakarta.apache.org/struts" />
<forward name="context-relative" path="/welcome.do" contextRelative="true" />
+ <forward name="module-root" path="/welcome.do" module="" />
+ <forward name="module-validator" path="/welcome.do" module="/validator" />
<forward name="relative" path="/welcome.do" />
<forward name="redirect-default" path="/" redirect="true" />
<forward name="logic-forward" path="/logic-forward.do" />
- <!--
- <forward name="cross-module" module="" path="/welcome.do" />
- -->
</global-forwards>
<action-mappings>
<action path="/welcome" forward="/index.html" />
1.4 +8 -0 jakarta-struts/web/examples/exercise/html-img.jsp
Index: html-img.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/web/examples/exercise/html-img.jsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- html-img.jsp 19 Jan 2004 04:43:10 -0000 1.3
+++ html-img.jsp 19 Feb 2004 18:45:43 -0000 1.4
@@ -40,5 +40,13 @@
<html:img page="/exercise/struts-power.gif" contextRelative="true"/>
</td>
</tr>
+ <tr>
+ <td>
+ Struts img tag via page attribute, default module
+ </td>
+ <td>
+ <html:img page="/exercise/struts-power.gif" module="/"/>
+ </td>
+ </tr>
</body>
</html>
1.4 +7 -1 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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- html-link.jsp 13 Feb 2004 11:07:55 -0000 1.3
+++ html-link.jsp 19 Feb 2004 18:45:43 -0000 1.4
@@ -162,7 +162,13 @@
<html:link forward="relative">module welcome page</html:link>
</li>
<li>
- <html:link forward="context-relative">application welcome page</html:link>
+ <html:link forward="context-relative">application welcome page (context relative attribute)</html:link>
+ </li>
+ <li>
+ <html:link forward="module-root">application welcome page (module attribute)</html:link>
+ </li>
+ <li>
+ <html:link forward="module-validator">validator welcome page</html:link>
</li>
<li>
<html:link forward="absolute">Struts website</html:link>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org