struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3997) Empty action names stop working
Date Thu, 21 Mar 2013 10:17:16 GMT

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

Lukasz Lenart commented on WW-3997:
-----------------------------------

[~chatellier] this is basically related to the same as [~alpha-pz] mentioned with DefaultActionMapper
- right now it returns null and thus blocks UnknownHandler to work, which does the magic ;-)

I need to think of that a bit what would be the best solution, because if the Convention plugin
is not used, user must define an "" action to work properly.

The simplest workaround for this problem is to define your own ActionMapper, register it and
done. It must simple extend DefaultActionMapper and override parseNameAndNamespace() or getMapping()
and instead returning null as action name, use empty string.
                
> Empty action names stop working
> -------------------------------
>
>                 Key: WW-3997
>                 URL: https://issues.apache.org/jira/browse/WW-3997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.12
>            Reporter: Diego Díez
>            Priority: Minor
>             Fix For: 2.3.13
>
>         Attachments: StrutsSample_1.zip
>
>
> Empty action names stop working.
> {code:xml}
> <package name="common-root" extends="struts-default" namespace="/">
>     <action name="">
>         <result name="success" type="tiles">index</result>
>     </action>
> </package>
> {code}
> For http://localhost:8084/, tomcat return 404 status

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

Mime
View raw message