struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jimjohn83@gmail.com" <jimjoh...@gmail.com>
Subject Re: Multiple controller
Date Mon, 02 May 2011 11:42:05 GMT
Hi 

My code is as follolws .

 <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/conf/struts/struts-config-1.xml</param-value>
        </init-param>
</servelt>


 <servlet>
        <servlet-name>action2</servlet-name>
       
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
 <init-param>
            <param-name>config/</param-name>
           
<param-value>/WEB-INF/conf/struts/struts-config-2.xml</param-value>
        </init-param>
</servelt>

<servlet-mapping> 
    <servlet-name>action</servlet-name> 
    <url-pattern>*.do</url-pattern> 
</servlet-mapping> 

<servlet-mapping> 
    <servlet-name>action2</servlet-name> 
    <url-pattern>*.au</url-pattern> 
</servlet-mapping> 



In the controller tag of struts-config 1 and 2 i have put classes say class1
and class2 which extend RequestProcessor.

but when *.au request is  made it is not getting into class2 instead it is
getting into class1





--
View this message in context: http://struts.1045723.n5.nabble.com/Multiple-controller-tp4364290p4364494.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message