struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils-Helge Garli (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (WW-2370) URL tag: "method" attribute without effect when "action" not specified
Date Tue, 08 Jan 2008 08:18:05 GMT

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

Nils-Helge Garli reopened WW-2370:
----------------------------------

      Assignee: Nils-Helge Garli

> 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
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.1
>
>
> 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.


Mime
View raw message