struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject svn commit: r388746 - in /struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages: MainMenu.jsp Registration.jsp Subscription.jsp Welcome.jsp
Date Sat, 25 Mar 2006 12:45:11 GMT
Author: husted
Date: Sat Mar 25 04:45:08 2006
New Revision: 388746

URL: http://svn.apache.org/viewcvs?rev=388746&view=rev
Log:
Action2 Apps
* Mailreader - Try some different tag prefixes on for size. 








Modified:
    struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/MainMenu.jsp
    struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Registration.jsp
    struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Subscription.jsp
    struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Welcome.jsp

Modified: struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/MainMenu.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/MainMenu.jsp?rev=388746&r1=388745&r2=388746&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/MainMenu.jsp (original)
+++ struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/MainMenu.jsp Sat Mar 25
04:45:08 2006
@@ -1,21 +1,21 @@
-<%@ taglib uri="/webwork" prefix="a2" %>
+<%@ taglib uri="/webwork" prefix="saf" %>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-    <title><a2:text name="mainMenu.title"/></title>
-    <link href="<a2:url value="/css/mailreader.css"/>" rel="stylesheet" type="text/css"/>
+    <title><saf:text name="mainMenu.title"/></title>
+    <link href="<saf:url value="/css/mailreader.css"/>" rel="stylesheet" type="text/css"/>
 </head>
 
 <body>
-<h3><a2:text name="mainMenu.heading"/> <a2:property value="user.fullName"/></h3>
+<h3><saf:text name="mainMenu.heading"/> <saf:property value="user.fullName"/></h3>
 <ul>
-    <li><a href="<a2:url action="Registration!input" />">
-        <a2:text name="mainMenu.registration"/>
+    <li><a href="<saf:url action="Registration!input" />">
+        <saf:text name="mainMenu.registration"/>
     </a>
     </li>
-    <li><a href="<a2:url action="Logoff"/>">
-        <a2:text name="mainMenu.logoff"/>
+    <li><a href="<saf:url action="Logoff"/>">
+        <saf:text name="mainMenu.logoff"/>
     </a>
 </ul>
 </body>

Modified: struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Registration.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Registration.jsp?rev=388746&r1=388745&r2=388746&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Registration.jsp (original)
+++ struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Registration.jsp Sat Mar
25 04:45:08 2006
@@ -10,7 +10,6 @@
         <title><a2:text name="registration.title.edit"/></title>
     </a2:if>
 </head>
-
 <body>
 
 <a2:form method="POST" validate="true">

Modified: struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Subscription.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Subscription.jsp?rev=388746&r1=388745&r2=388746&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Subscription.jsp (original)
+++ struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Subscription.jsp Sat Mar
25 04:45:08 2006
@@ -1,51 +1,51 @@
-<%@ taglib uri="/webwork" prefix="a2" %>
+<%@ taglib uri="/webwork" prefix="ui" %>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-    <a2:if test="task=='Create'">
-        <title><a2:text name="subscription.title.create"/></title>
-    </a2:if>
-    <a2:if test="task=='Edit'">
-        <title><a2:text name="subscription.title.edit"/></title>
-    </a2:if>
-    <a2:if test="task=='Delete'">
-        <title><a2:text name="subscription.title.delete"/></title>
-    </a2:if>
+    <ui:if test="task=='Create'">
+        <title><ui:text name="subscription.title.create"/></title>
+    </ui:if>
+    <ui:if test="task=='Edit'">
+        <title><ui:text name="subscription.title.edit"/></title>
+    </ui:if>
+    <ui:if test="task=='Delete'">
+        <title><ui:text name="subscription.title.delete"/></title>
+    </ui:if>
 </head>
 
 <body>
-<a2:form method="POST" action="Subscription" validate="true">
-    <a2:hidden name="task"/>
-    <a2:label label="%{getText('prompt.username')}" name="user.username"/>
-
-    <a2:if test="task == 'Create'">
-        <a2:textfield label="%{getText('prompt.mailHostname')}" name="subscription.host"/>
-    </a2:if>
-    <a2:else>
-        <a2:label label="%{getText('prompt.mailHostname')}" name="subscription.host"/>
-        <a2:hidden name="subscription.host"/>
-    </a2:else>
+<ui:form method="POST" action="Subscription" validate="true">
+    <ui:hidden name="task"/>
+    <ui:label label="%{getText('prompt.username')}" name="user.username"/>
+
+    <ui:if test="task == 'Create'">
+        <ui:textfield label="%{getText('prompt.mailHostname')}" name="subscription.host"/>
+    </ui:if>
+    <ui:else>
+        <ui:label label="%{getText('prompt.mailHostname')}" name="subscription.host"/>
+        <ui:hidden name="subscription.host"/>
+    </ui:else>
 
-    <a2:textfield label="%{getText('prompt.mailUsername')}" name="subscription.username"/>
+    <ui:textfield label="%{getText('prompt.mailUsername')}" name="subscription.username"/>
 
-    <a2:textfield label="%{getText('prompt.mailPassword')}" name="subscription.password"/>
+    <ui:textfield label="%{getText('prompt.mailPassword')}" name="subscription.password"/>
 
-    <a2:select label="%{getText('prompt.mailServerType')}" name="subscription.type"
+    <ui:select label="%{getText('prompt.mailServerType')}" name="subscription.type"
                list="types"/>
 
-    <a2:checkbox label="%{getText('prompt.autoConnect')}" name="subscription.autoConnect"/>
+    <ui:checkbox label="%{getText('prompt.autoConnect')}" name="subscription.autoConnect"/>
 
-    <a2:if test="task == 'Delete'">
-        <a2:submit value="%{getText('button.confirm')}"/>
-        <a2:reset value="%{getText('button.reset')}"/>
-    </a2:if>
-    <a2:else>
-        <a2:submit value="%{getText('button.save')}"/>
-    </a2:else>
+    <ui:if test="task == 'Delete'">
+        <ui:submit value="%{getText('button.confirm')}"/>
+        <ui:reset value="%{getText('button.reset')}"/>
+    </ui:if>
+    <ui:else>
+        <ui:submit value="%{getText('button.save')}"/>
+    </ui:else>
 
-    <a2:submit action="MainMenu" value="%{getText('button.cancel')}" onclick="form.onsubmit=null"/>
-</a2:form>
+    <ui:submit action="MainMenu" value="%{getText('button.cancel')}" onclick="form.onsubmit=null"/>
+</ui:form>
 
 <jsp:include page="Footer.jsp"/>
 

Modified: struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Welcome.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Welcome.jsp?rev=388746&r1=388745&r2=388746&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Welcome.jsp (original)
+++ struts/sandbox/trunk/action2/apps/mailreader/src/webapp/pages/Welcome.jsp Sat Mar 25 04:45:08
2006
@@ -1,19 +1,19 @@
-<%@ taglib uri="/webwork" prefix="a2" %>
+<%@ taglib uri="/webwork" prefix="t" %>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-    <title><a2:text name="index.title"/></title>
-    <link href="<a2:url value="/css/mailreader.css"/>" rel="stylesheet" type="text/css"/>
+    <title><t:text name="index.title"/></title>
+    <link href="<t:url value="/css/mailreader.css"/>" rel="stylesheet" type="text/css"/>
 </head>
 
 <body>
-<h3><a2:text name="index.heading"/></h3>
+<h3><t:text name="index.heading"/></h3>
 
 <ul>
-    <li><a href="<a2:url action="Registration!input"/>"><a2:text name="index.registration"/></a></li>
-    <li><a href="<a2:url action="Logon!input"/>"><a2:text name="index.logon"/></a></li>
+    <li><a href="<t:url action="Registration!input"/>"><t:text name="index.registration"/></a></li>
+    <li><a href="<t:url action="Logon!input"/>"><t:text name="index.logon"/></a></li>
 </ul>
 
 <h3>Language Options</h3>
@@ -21,16 +21,16 @@
 <hr/>
 
 <ul>
-    <li><a href="<a2:url action="Locale?language=en"/>">English</a></li>
-    <li><a href="<a2:url action="Locale?language=ja"/>">Japanese</a></li>
-    <li><a href="<a2:url action="Locale?language=ru"/>">Russian</a></li>
+    <li><a href="<t:url action="Locale?language=en"/>">English</a></li>
+    <li><a href="<t:url action="Locale?language=ja"/>">Japanese</a></li>
+    <li><a href="<t:url action="Locale?language=ru"/>">Russian</a></li>
 </ul>
 
-<p><a2:i18n name="alternate">
-    <img src="<a2:url><a2:text name="struts.logo.path"/></a2:url>" alt="<a2:text
name="struts.logo.alt"/>"/>
-</a2:i18n></p>
+<p><t:i18n name="alternate">
+    <img src="<t:url><t:text name="struts.logo.path"/></t:url>" alt="<t:text
name="struts.logo.alt"/>"/>
+</t:i18n></p>
 
-<p><a href="<a2:url action="Tour" />"><a2:text name="index.tour"/></a></p>
+<p><a href="<t:url action="Tour" />"><t:text name="index.tour"/></a></p>
 
 </body>
 </html>



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


Mime
View raw message