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

Lukasz Lenart closed WW-2737.
-----------------------------
    Resolution: Not A Problem

> 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/jira/browse/WW-2737
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.1.1
>            Reporter: Richard Burton
>            Priority: Minor
>             Fix For: 6.1.0
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to