Convention plugin fails to resolve action/method correctly
----------------------------------------------------------
Key: WW-3276
URL: https://issues.apache.org/struts/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 Varley
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.
-
You can reply to this email to add a comment to the issue online.