Hello,
Assuming you want to have /index.ext as a welcome file, and have .ext mapped to Struts, just add index.ext to welcome-file as you have done, then create an empty file index.ext in every folder you want it to work.

Greetings, Lilianne E. Blaze


Jim Kennedy wrote:

I'm trying to use a struts action as my only welcome-file in web.xml.  I
assumed this to be straightforward, but apparently it does not seem to be.
Index.jsp works and index.html works, but not something like (index.xyz)
where xyz is mapped to ActionServlet.

Here's a snippet of web.xml:

        <servlet>
                <servlet-name>ActionServlet</servlet-name>
                <display-name>ActionServlet</display-name>
                <description>Main Struts Servlet</description>
        
<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>15</load-on-startup>
        </servlet>
        <servlet>
                <servlet-name>LoginServlet</servlet-name>
                <display-name>LoginServlet</display-name>
                <servlet-class>com.je.servlet.LoginServlet</servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>ActionServlet</servlet-name>
                <url-pattern>*.rwx</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
                <servlet-name>ActionServlet</servlet-name>
                <url-pattern>/logout</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
                <servlet-name>ActionServlet</servlet-name>
                <url-pattern>*.exe</url-pattern>
        </servlet-mapping>
        <session-config>
                <session-timeout>5</session-timeout>
        </session-config>
        <welcome-file-list>
        <welcome-file>home.rwx</welcome-file>
                <!--
                <welcome-file>index.html</welcome-file>
                <welcome-file>index.jsp</welcome-file>
                -->
        </welcome-file-list>

When I try to access http://www.mydomain.com/ I get a directory list which
is what you will get if the default servlet can not find any welcome files.

I've been running struts in production for a long time and have every aspect
of struts working properly.  That is except for this one.  I have a feeling
it is an initialization problem of some kind.  Also I would imagine others
have asked this very same question.  Difficult to search google because
anything with "welcome-file" brings back volumes in info.

Thanks

Jim Kennedy



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







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

Reply via email to