URL tag: "method" attribute without effect when "action" not specified
----------------------------------------------------------------------

                 Key: WW-2370
                 URL: https://issues.apache.org/struts/browse/WW-2370
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.11
         Environment: JBoss 4.2
            Reporter: Aleksander Adamowski


I'm creating a simple JSR-168 portlet and my struts package inherits from 
struts-portlet-default.

I've noticed that on simple usage of the "url" and "a" tags, when I omit the 
"action" attribute (so that the URL point to the current action's URL), and 
specify the "method" attribute, the "method" attribute has no effect - the 
default execute() method is invoked on the current action.

But when I specify the "action" attribute, with the  current action as its 
value, the "method" attribute works and the specified method is invoked on the 
current action.

I suspect that this is not an intended behaviour. It's definitely not 
documented and one would expect the "method" attribute to work even when 
"action" attribute is omitted (in the spirit of zero configuration and 
convention over configuration...)



-- 
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