struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1140218 - in /struts/struts2/trunk/apps/showcase/src/main/webapp/person: edit-person.jsp index.jsp list-people.ftl new-person.ftl
Date Mon, 27 Jun 2011 15:59:19 GMT
Author: jogep
Date: Mon Jun 27 15:59:19 2011
New Revision: 1140218

URL: http://svn.apache.org/viewvc?rev=1140218&view=rev
Log:
WW-3632: /struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp should use struts
tag <s:a> instead of <a>

Modified:
    struts/struts2/trunk/apps/showcase/src/main/webapp/person/edit-person.jsp
    struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp
    struts/struts2/trunk/apps/showcase/src/main/webapp/person/list-people.ftl
    struts/struts2/trunk/apps/showcase/src/main/webapp/person/new-person.ftl

Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/person/edit-person.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/person/edit-person.jsp?rev=1140218&r1=1140217&r2=1140218&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/person/edit-person.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/person/edit-person.jsp Mon Jun 27 15:59:19
2011
@@ -33,8 +33,10 @@
 </s:form>
 
 <ul>
-    <li><a href="new-person!input.action">Create</a> a new person</li>
-    <li><a href="list-people.action">List</a> all people</li>
+    <s:url id="newpersonurl" action="new-person" method="input" />
+    <li><s:a href="%{newpersonurl}">Create</s:a> a new person</li>
+    <s:url id="listpeopleurl" action="list-people" />
+    <li><s:a href="%{listpeopleurl}">List</s:a> all people</li>
 </ul>
 
 </body>

Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp?rev=1140218&r1=1140217&r2=1140218&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp Mon Jun 27 15:59:19
2011
@@ -1,3 +1,5 @@
+<%@ taglib prefix="s" uri="/struts-tags" %>
+
 <html>
 <head>
     <title>Acme Corp</title>
@@ -5,8 +7,10 @@
 
 <body>
 <ul>
-    <li><a href="new-person!input.action">Create</a> a new person</li>
-    <li><a href="list-people.action">List</a> all people</li>
+    <s:url id="newpersonurl" action="new-person" method="input" />
+    <li><s:a href="%{newpersonurl}">Create</s:a> a new person</li>
+    <s:url id="listpeopleurl" action="list-people" />
+    <li><s:a href="%{listpeopleurl}">List</s:a> all people</li>
 </ul>
 </body>
 </html>

Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/person/list-people.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/person/list-people.ftl?rev=1140218&r1=1140217&r2=1140218&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/person/list-people.ftl (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/person/list-people.ftl Mon Jun 27 15:59:19
2011
@@ -21,8 +21,10 @@ There are ${peopleCount} people... 
 </table>
 
 <ul>
-    <li><a href="edit-person.action">Edit people</a></li>
-    <li><a href="new-person!input.action">Create</a> a new person</li>
+    <@s.url id="editpersonurl" action="edit-person" />
+    <li><@s.a href="%{editpersonurl}">Edit people</@s.a></li>
+    <@s.url id="newpersonurl" action="new-person" method="input" />
+    <li><@s.a href="%{newpersonurl}">Create</@s.a> a new person</li>
 </ul>
 </body>
 </html>

Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/person/new-person.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/person/new-person.ftl?rev=1140218&r1=1140217&r2=1140218&view=diff
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/person/new-person.ftl (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/person/new-person.ftl Mon Jun 27 15:59:19
2011
@@ -11,8 +11,10 @@
 </@s.form>
 
 <ul>
-    <li><a href="edit-person.action">Edit people</a></li>
-    <li><a href="list-people.action">List</a> all people</li>
+    <@s.url id="editpersonurl" action="edit-person" />
+    <li><@s.a href="%{editpersonurl}">Edit people</@s.a></li>
+    <@s.url id="listpeopleurl" action="list-people" />
+    <li><@s.a href="%{listpeopleurl}">List</@s.a> all people</li>
 </ul>
 
 </body>



Mime
View raw message