[
https://issues.apache.org/struts/browse/WW-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45282#action_45282
]
Michał Stochliński commented on WW-2525:
----------------------------------------
I use struts version 2.0.14 and I have the same problem. Default-aciton-ref
doesn't work.
My configuration:
<constant name="struts.action.extension" value="html,,"/>
...
<package name="online" extends="default" namespace="/">
<default-action-ref name="index"></default-action-ref>
<action name="index" class="startPageAction" method="execute">
<result>/WEB-INF/pages/index.jsp</result>
</action>
</package>
Now when I type http://localhost:8080/myApplicationName/ browser raport HTTP
Status 404.
I tried to use version 2.1.2 and there default-aciton-ref works with this
configuration.
But, because of other issues I cannot use this version :(
> default-action-ref not working!
> -------------------------------
>
> Key: WW-2525
> URL: https://issues.apache.org/struts/browse/WW-2525
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11
> Environment: RAD 7, Windows XP
> Reporter: Vijay
> Assignee: Don Brown
>
> It looks like default-action-ref feature is not working (even using struts
> blank war) ---
> web.xml
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> struts.xml
> <package name="example" namespace="/example" extends="struts-default">
> <default-action-ref name="HelloWorld" />
> <action name="HelloWorld" class="example.HelloWorld">
> <result>/example/HelloWorld.jsp</result>
> </action>
> The URL such as: http://localhost:9080/struts2-blank-2.0.11/example/
> throws 404. My understanding is the default path should bring up action
> referenced in default-action-ref.
> Thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.