You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by hu...@apache.org on 2006/07/26 22:26:13 UTC

svn commit: r425834 - /struts/struts2/trunk/apps/mailreader/src/main/webapp/pages/Welcome.jsp

Author: husted
Date: Wed Jul 26 13:26:13 2006
New Revision: 425834

URL: http://svn.apache.org/viewvc?rev=425834&view=rev
Log:
WW-1340 Correct tag idiom. 

Modified:
    struts/struts2/trunk/apps/mailreader/src/main/webapp/pages/Welcome.jsp

Modified: struts/struts2/trunk/apps/mailreader/src/main/webapp/pages/Welcome.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/mailreader/src/main/webapp/pages/Welcome.jsp?rev=425834&r1=425833&r2=425834&view=diff
==============================================================================
--- struts/struts2/trunk/apps/mailreader/src/main/webapp/pages/Welcome.jsp (original)
+++ struts/struts2/trunk/apps/mailreader/src/main/webapp/pages/Welcome.jsp Wed Jul 26 13:26:13 2006
@@ -22,9 +22,22 @@
 
 <h3>Language Options</h3>
 <ul>
-    <li><a href="<s:url action="Welcome?request_locale=en"/>">English</a></li>
-    <li><a href="<s:url action="Welcome?request_locale=ja"/>">Japanese</a></li>
-    <li><a href="<s:url action="Welcome?request_locale=ru"/>">Russian</a></li>
+    <li>
+        <s:url id="en" action="Welcome">
+            <s:param name="request_locale">en</s:param>
+        </s:url>
+        <s:a href="%{en}">English</s:a>
+    </li>
+    <li>
+        <a href="<s:url action="Welcome">
+            <s:param name="request_locale">ja</s:param>
+        </s:url>">Japanese</a>
+   </li>
+    <li>
+        <a href="<s:url value="Welcome.do">
+            <s:param name="request_locale" value="'ru'" />
+            </s:url>">Russian</a>
+    </li>
 </ul>
 
 <hr/>