mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
WW-1352
- added example in showcase demonstrating the usage of action prefix git-svn-id: https://svn.apache.org/repos/asf/struts/action2/trunk@415118 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
package org.apache.struts.action2.showcase.tag.nonui.actionPrefix;
|
||||
|
||||
import com.opensymphony.xwork.ActionSupport;
|
||||
|
||||
public class SubmitAction extends ActionSupport {
|
||||
|
||||
private static final long serialVersionUID = -7832803019378213087L;
|
||||
|
||||
private String text;
|
||||
|
||||
public String getText() { return text; }
|
||||
public void setText(String text) { this.text = text; }
|
||||
|
||||
public String execute() throws Exception {
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
public String alternateMethod() {
|
||||
return "methodPrefixResult";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user