DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16982>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16982

Action listed as a "welcome-file" in web.xml not executed unless dummy file exists

           Summary: Action listed as a "welcome-file" in web.xml not
                    executed unless dummy file exists
           Product: Struts
           Version: 1.1 Beta 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Using Tomcat 4.1.18.

I would like the "welcome-file" to be a Struts action, so I configure my web.xml
and struts-config.xml files as follows:

web.xml:
<web-app>
  <welcome-file-list>
    <welcome-file>/index</welcome-file>
  </welcome-file-list>
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>/index</url-pattern>
  </servlet-mapping>
</web-app>

struts-config.xml:
<struts-config>
  <action-mappings>
    <action path="/index" type="ai.apps.timesheet.actions.IndexAction"/>
  </action-mappings>
</struts-config>

However, the action is not instantiated when I hit "http://mysite/blah/index";.

However (again), if I create an empty file in my webapp root called "index",
then my action *is* instantiated.  The content of the "index" file does not
appear to matter, just as long as it exists.

I think this may be a Tomcat issue, but I'm not 100% sure.....

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to