mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
WW-1349 MailReader: Conform class names
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@438498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -9,7 +9,7 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p> Provide an Edit method for retrieving an existing subscription, and a
|
||||
* Save method for updating or inserting a subscription. </p>
|
||||
* Update method for updating or inserting a subscription. </p>
|
||||
*/
|
||||
public class Support extends MailreaderSupport
|
||||
implements Preparable {
|
||||
|
||||
@@ -5,7 +5,7 @@ import mailreader2.Constants;
|
||||
/**
|
||||
* <p> Workaround class. Submitting to an alias doesn't seem to work. </p>
|
||||
*/
|
||||
public final class Save extends Edit {
|
||||
public final class Update extends Edit {
|
||||
|
||||
public void prepare() {
|
||||
super.prepare();
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<!-- goto actions: Exit to another workflow -->
|
||||
|
||||
<action name="subscription/Save" class="mailreader2.subscription.Save">
|
||||
<action name="subscription/Save" class="mailreader2.subscription.Update">
|
||||
<result name="input">/pages/subscription.jsp</result>
|
||||
<result type="redirect-action">registration/+Input</result>
|
||||
</action>
|
||||
@@ -43,7 +43,7 @@
|
||||
<result>/pages/{1}.jsp</result>
|
||||
</action>
|
||||
|
||||
<!-- execute actions: Create, Retrieve, Update, Save -->
|
||||
<!-- execute actions: Create, Retrieve, Update, Update -->
|
||||
|
||||
<action name="*/*" class="mailreader2.{1}.{2}">
|
||||
<result name="input">/pages/{1}.jsp</result>
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
type="text/css"/>
|
||||
</head>
|
||||
|
||||
<body onLoad="self.focus();document.Retrieve.username.focus()">
|
||||
<body onLoad="self.focus();document.logon_Retrieve.logon_Retrieve_username.focus()">
|
||||
|
||||
<s:actionerror/>
|
||||
<s:form id="Retrieve" action="logon/Retrieve" validate="true">
|
||||
<s:form id="logon_Retrieve" action="logon/Retrieve" validate="true">
|
||||
<s:textfield label="%{getText('username')}" name="username"/>
|
||||
|
||||
<s:password label="%{getText('password')}" name="password" showPassword="true"/>
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
type="text/css"/>
|
||||
</head>
|
||||
|
||||
<body onLoad="self.focus();document.form1.username.focus()">
|
||||
<body onLoad="self.focus();document.registration_Update.registration_Update_username.focus()">
|
||||
|
||||
<s:actionerror/>
|
||||
<s:form id="form1" action="registration/Update" validate="true">
|
||||
<s:form id="registration_Update" action="registration/Update" validate="true">
|
||||
<s:token/>
|
||||
<s:hidden name="task"/>
|
||||
<s:if test="task == 'Create'">
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
type="text/css"/>
|
||||
</head>
|
||||
|
||||
<body onLoad="self.focus();document.form1.username.focus()">
|
||||
<body onLoad="self.focus();document.subscription_Update.subscription_Update_username.focus()">
|
||||
|
||||
<s:actionerror/>
|
||||
<s:form id="form1" action="subscription/Save" validate="true">
|
||||
<s:form id="subscription_Update" action="subscription/Update" validate="true">
|
||||
<s:token/>
|
||||
<s:hidden name="task"/>
|
||||
<s:label label="%{getText('username')}" name="user.username"/>
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ConfigTest extends XWorkTestCase {
|
||||
}
|
||||
|
||||
public void testSubscriptionSave() throws Exception {
|
||||
ActionConfig config = assertClass("subscription/Save", "mailreader2.subscription.Save");
|
||||
ActionConfig config = assertClass("subscription/Update", "mailreader2.subscription.Update");
|
||||
assertResult(config, ActionSupport.SUCCESS, "registration/+Input");
|
||||
assertResult(config, ActionSupport.INPUT, "/pages/subscription.jsp");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user