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 Mon, 18 Mar 2013 13:22:15 GMT

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

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

Basically if action name cannot be determined, mapper should return null to allow pass handling
to static resource. Empty action name is some kind of failure, you must have it defined to
properly handle request to http://localhost:8080/ in other way you will get Action not found
error.

This is bit philosophical problem as you must always define a default resource with a http
server, take a look on the httpd directive:
{noformat}
DirectoryIndex index.html
{noformay}

which does the same as action with empty name, forward request to http://localhost/ to index.html
file. Is the same as welcome-files in web.xml
                
> 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: Blocker
>             Fix For: 2.3.13
>
>
> 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