Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2525

default-action-ref not working!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.11
    • None
    • None
    • None
    • RAD 7, Windows XP

    Description

      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.

      Attachments

        Activity

          People

            mrdon Donald J. Brown
            svkworld Vijay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: