struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: action global forward extension
Date Tue, 03 Feb 2004 18:17:37 GMT
Quoting Bradley Beddoes <b.beddoes@iinet.net.au>:

> Hi All.
>  
> I wish to have some global forwards invoked as .do others as .do2 (so as
> to differentiate what filters get hit with the differing requests), Is
> this possible within struts? (Please see struts.conf below)
>  

Struts supports only one mapping to the controller servlet.

http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_mapping

Since you are using extension mapping, one thing to consider is to create an
artificial "directory" level in your action paths ("/foo/setup.do" and
"/bar/teardown.do" instead of "setup.do" and "teardown.do2").  That way, you
can have different filters on "/foo/*" and "/bar/*".

Craig


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


Mime
View raw message