You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "tom liu (JIRA)" <ji...@apache.org> on 2006/12/19 11:43:57 UTC

[jira] Created: (WW-1568) TokenAction's doInput method don't work?

TokenAction's doInput method don't work?
----------------------------------------

                 Key: WW-1568
                 URL: http://issues.apache.org/struts/browse/WW-1568
             Project: Struts 2
          Issue Type: Bug
          Components: Examples
    Affects Versions: 2.0.1
         Environment: WindowsXP/Tomcat5.5.17/Jre1.5.0_17
            Reporter: tom liu


In Struts Example-showcase, i found that the token example does not work well: in struts-token.xml, the tokenPrepare is defined as <action name="tokenPrepare!*" class="...TokenAction" method="{1}"> ... <result name="input">example1.jsp</result> </action>; and in token/index.jsp, the link is <a href="tokenPrepare!input.action">...</a>; and in TokenAction class, defined method is execute and doInput; and in Dispatcher class, the method got from mapping is input.
So, the defined method doInput does not work, but the worked method is input.
I override the input method as:
public String input() throws Exception {
	return doInput();
}

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

        

[jira] Resolved: (WW-1568) TokenAction's doInput method don't work?

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1568?page=all ]

Don Brown resolved WW-1568.
---------------------------

    Fix Version/s: 2.0.2
       Resolution: Fixed
         Assignee: Don Brown

This has been fixed and if it wasn't, I've reverted the commit that removed support for do* action methods due to backwards compatibility concerns.

> TokenAction's doInput method don't work?
> ----------------------------------------
>
>                 Key: WW-1568
>                 URL: http://issues.apache.org/struts/browse/WW-1568
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 2.0.1
>         Environment: WindowsXP/Tomcat5.5.17/Jre1.5.0_17
>            Reporter: tom liu
>         Assigned To: Don Brown
>             Fix For: 2.0.2
>
>
> In Struts Example-showcase, i found that the token example does not work well: in struts-token.xml, the tokenPrepare is defined as <action name="tokenPrepare!*" class="...TokenAction" method="{1}"> ... <result name="input">example1.jsp</result> </action>; and in token/index.jsp, the link is <a href="tokenPrepare!input.action">...</a>; and in TokenAction class, defined method is execute and doInput; and in Dispatcher class, the method got from mapping is input.
> So, the defined method doInput does not work, but the worked method is input.
> I override the input method as:
> public String input() throws Exception {
> 	return doInput();
> }

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