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

James Holmes updated WW-2737:
-----------------------------

    Fix Version/s: Future

> In regards to the NoSuchMethod exception thrown when making a request that 
> has a view, but no method defined.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2737
>                 URL: https://issues.apache.org/struts/browse/WW-2737
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.1.1
>            Reporter: Richard Burton
>            Priority: Minor
>             Fix For: Future
>
>
> When using the REST plug-in and issuing a GET /controller the documented 
> logic is that it'll invoke the index() method. There are cases in which this 
> method doesn't exist and a NoSuchMethodException is thrown. 
> The proposed enhancement is to not throw the NoSuchMethodException and make 
> an effort to resolve the view using the Codebehind plug-in as described at 
> http://struts.apache.org/2.x/docs/rest-plugin.html under the "Usage" section.
> The fix would be to use the CodebehindUnknownHandler#handleUnknownResult 
> Line: 110
>                             try{
>                                 
> unknownHandler.handleUnknownResult(proxy.getInvocation().getInvocationContext(),
>  proxy.getActionName(), actionConfig, methodName);
>                             }catch(XWorkException xworke){
>                                 throw xworke;
>                             }
> Best Regards,
> Richard L. Burton III

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to