Hi all,
The struts documentation
(http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config)
says that "WARNING - Struts will not operate correctly if you define more
than one <servlet-mapping> element for the controller servlet."
I would like to know the reason behind this. Is it that the
controller will not be able to differentiate between request to similar URLs
which differ by the extension ?
Let us take a simple example, suppose I were to map the action to two
extensions, as in:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.act</url-pattern>
</servlet-mapping>
One would think that the Action Servlet will have trouble in figuring
out how to handle the following URLs
http://hostname/context/getBalance.do and
http://hostname/context/getBalance.act. This is because the action mapping
does not contain the extensions.
<action path="/getBalance" type="com.myco.BalanceAction" />
Is there any other known issue in the use of more than one mapping to the
action servlet.
Regards
Mano
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>