Joe Germuska wrote:
At 2:17 PM -0400 9/17/05, Laurie Harper wrote:
On a slight tangent, what happens if you're using wild-card action
mapping paths? When Struts matches URLs against mapping paths the last
match wins, which means you have to be careful about the order you
define your actions in. In my application I have a general 'catch-all'
mapping with the path '/**' listed first and another with the path
'/**/' which simply redirects to '/{1}' (i.e. strips the trailing '/')
which, of course, has to be listed last.
If I break up my struts-config.xml into multiple files I suspect I'm
going to have some problems with this ;-)
Actually, it should be determinate, in for a single module, Struts
processes the config files in the order in which they are specified in
the servlet init parameter.
It still might be confusing, but it should be determinate!
True; I was thinking about if I had multiple config files without using
modules, but I guess the same thing applies [except with modules I'd
need to repeat my pair or catch-all mappings for each module, of course].
Hmm, I guess I could have a pair of config files which contained one of
the mappings each and just make those the first and last files loaded,
though; I *think* I could even share the same two config files for each
module (I can't remember off-hand if the module name prefix ever has to
appear in the struts-config).
Cheers,
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]