THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
package tutorial @Action("Logon") // actually that is not necessary as it is added by convention @Results( @Result(type="redirectAction", location="Menu"), @Result(name="input", location="/Logon.jsp") ) public class Logon { |
Action Names
In a web application, the name
attribute is matched as part of the location requested by a browser (or other HTTP client). The framework will drop the host and application name and the extension and match what's in the middle: the action name. So, a request for http://www.planetstruts.org/struts2-mailreader/Welcome.action
will map to the Welcome
action.
...
- literals ie.
execute,cancel
- patterns when using with wildcard mapping, i.e {{
<action ... method="do{2}"/>
}} - RegExs using
regex:
prefix, ie:<global-allowed-methods>execute,input,cancel,regex:user([A-Z]*)</global-allowed-methods>
...