You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/03/25 20:33:15 UTC
[jira] [Resolved] (WW-3276) Convention plugin fails to resolve
action/method correctly
[ https://issues.apache.org/jira/browse/WW-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart resolved WW-3276.
-------------------------------
Resolution: Not A Problem
Thanks [~jeffblack360]!
> Convention plugin fails to resolve action/method correctly
> ----------------------------------------------------------
>
> Key: WW-3276
> URL: https://issues.apache.org/jira/browse/WW-3276
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Convention
> Affects Versions: 2.1.6
> Environment: Eclipse IDE on both Windows & OpenSuse 11.2 with Tomcat 2.0.18
> Reporter: Roger Rached
> Fix For: 3.0
>
> Attachments: demo.war
>
>
> Each button has the URL - action:deletegroup?deleteId=x where x is the index of the list. If action DemoDelete has the @Annotation @Action("deletegroup") then Struts throws a no action fund. Change the @Annotation to @Action("deletegroup?deleteId=2") and press the appropriate button then the delete method gets called. However, Struts then throws No result defined for action com.blackbox.actions.DemoDelete and result sucess The error thrown doesn't seem to relate to what can't be found. I've noticed that once I start using @Action notations, Struts seems to get confused and the error messages are misleading. For example, remove entry-input.jsp and Struts error message throws No result defined for action com.blackbox.actions.DemoDelete and result input which is extemely confusing when what it seems to be looking for is entry-input.jsp.
> I have a demo.war file available if ou can tell me where to send/upload
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira