struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-1723) Action mapping type=redirect-action appends !password if no method param is specified
Date Mon, 01 Dec 2008 18:54:37 GMT

    [ https://issues.apache.org/struts/browse/WW-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45075#action_45075
] 

Musachy Barroso commented on WW-1723:
-------------------------------------

Was this fixed already? Changing this mapping in showcase struts-tags-ui.xml:

<action name="example" class="org.apache.struts2.showcase.UITagExample" method="input">
            <result>example.jsp</result>
            <result name="input" type="redirectAction">
                <param name="actionName">exampleSubmit</param>
                <param name="id">123</param>
            </result>
</action>

when I access :

http://localhost:8080/struts2-showcase/tags/ui/example!input.action

it redirects to:

http://localhost:8080/struts2-showcase/tags/ui/exampleSubmit.action?id=123

> Action mapping type=redirect-action appends !password if no method param is specified
> -------------------------------------------------------------------------------------
>
>                 Key: WW-1723
>                 URL: https://issues.apache.org/struts/browse/WW-1723
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: XML Configuration
>    Affects Versions: 2.0.5
>         Environment: WinXP, Tomcat 5.5
>            Reporter: Brian Thompson
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> When an action mapping is defined in struts.xml with a result type of redirect-action
and a runtime-parsed URL parameter, the URL that gets generated will be of the form
> http://www.example.com/proj/action!password.action?id=1234
> Instead of the expected
> http://www.example.com/proj/action.action?id=1234
> Adding <param name="method">foo</param> to the mapping changes the URL result
to
> http://www.example.com/proj/action!foo.action?id=1234
> The action mapper needs to default to not specifying any method in the URL string.

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