Folks:

I am trying to take advantage of using multiple configuration files and I
can't get past this simple step. -- Below is a snippet of web.xml

<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>
                <init-param>
                        <param-name>config/marketbreaks</param-name>
 
<param-value>/WEB-INF/struts-marketbreaks-config.xml</param-value>
                </init-param>
                <init-param>
                        <param-name>debug</param-name>
                        <param-value>2</param-value>
                </init-param>
                <init-param>
                        <param-name>detail</param-name>
                        <param-value>2</param-value>
                </init-param>
                <init-param>
                        <param-name>validate</param-name>
                        <param-value>true</param-value>
                </init-param>
                <load-on-startup>2</load-on-startup>
        </servlet>      


I am purposely breaking the syntax on struts-marketbreaks-config.xml so that
Tomcat will complain when it tries to load it, and that isn't happening. So
basically I am assuming that the struts-marketbreaks-config.xml is not even
being picked up by struts. Even if it does, then I have a problem with 

<html:link forward='accessrights'>Access Rights</html:link> where
accessrights is a global forward in struts-marketbreaks-config.xml

    <global-forwards>
        <forward name="accessrights" path="/accessRights.jsp"
contextRelative="true">
        </forward>
    </global-forwards>

and I get this error when I go to the page:

javax.servlet.ServletException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named
accessrights 

It appears that the index.jsp which is trying to use the regular
struts-config.xml and not the one for the module it is in.


If anyone can pitch in on this I'd appreciate it.






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

Reply via email to