[ 
https://issues.apache.org/struts/browse/WW-1608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Don Brown resolved WW-1608.
---------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.0.3)
         Assignee: Don Brown

Ok, the problem is your action mapping that just contains the "*":

<action name="*" class="tutorial.GeneralSupport">
<result>/WEB-INF/jsp/{1}.jsp</result>
</action> 

You don't need that, and in fact, it is hijacking the Login action's urls.

>  Apache Struts 2 Documentation > Home > Tutorials > Bootstrap > Validating 
> Input's example is wrong
> ---------------------------------------------------------------------------------------------------
>
>                 Key: WW-1608
>                 URL: https://issues.apache.org/struts/browse/WW-1608
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.1
>            Reporter: chenshi
>         Assigned To: Don Brown
>
> In  Apache Struts 2 Documentation > Home > Tutorials > Bootstrap > Validating 
> Input section. 
> The document tell me that we should delete <action name="Login" 
> class="tutorial.Login"> and replace by <action name="Login!*" method="{1}" 
> class="tutorial.Login"> in struts.xml. but when i do like this, tomcat report 
> "No result defined for action com.opensymphony.xwork2.ActionSupport and 
> result input - action".  
> Actually this is not need to replace "<action name="Login" 
> class="tutorial.Login">" by "<action name="Login!*" method="{1}" 
> class="tutorial.Login">", struts will auto find the method in class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to