"Ansaldo, Gaston" wrote:
> Craig:
> thanks for your reply; actually, I undertood it the way your are
> describing the behavior but what I can't understand is why every time I add
> new paths in a Struts 0.5 app I have to update both files. Should be enought
> updating action.xml?
>
You only need to add entries to the file of the format you are actually using in
your app, which is determined by the "validate" initialization parameter to the
controller servlet in your web.xml file. If this is set to "true" (as it is in
the Struts 1.0 version of the example), only the new format is expected.
Otherwise, the old format is expected.
The actual resource path to the configuration file is specified by the "config"
initialization parameter. In the default Struts 1.0 example, this value is
"/WEB-INF/struts-config.xml" and the "action.xml" file will not be processed.
>
> What i'm doing is extending the example app by adding new functionality,
> just to understand how Struts's paths and actions work.
>
> Thanks again.
>
> Gast�n.
>
Craig