struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted" <>
Subject Re: How to splite the the sturts application into modules
Date Thu, 20 Apr 2006 12:07:44 GMT
On 4/20/06, Vimal Varghese <> wrote:
> Can someone suggest a site for struts modulisation, with a small example.

The "Examples" application that is bundled with the Struts 1.2.9
distribution uses modules. Orginally, each module was a separate
example application. When modules came out, we bundled them into one.



The module feature works well, but a simplier alternative can be to
use multiple configuration files. The modules automatically insert a
prefix for you, to avoid action name collissions. But, if you can
manage your own prefixes, multiple configurations works as well.

To use multiple configuration files, simply specify more than one file
in the web.xml.

         /WEB-INF/struts-config.xml, /WEB-INF/struts-config-2.xml,

HTH, Ted.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message