You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Reyes <ri...@gmail.com> on 2005/05/24 07:36:40 UTC
wildcard action mapping
Hello Guys,
I got this action mapping...
<action path="/login-*"
type="net.telic.wdsap.actions.LoadCustomPropertiesAction">
<forward name="login" path="/page-login-{1}.tn" />
<forward name="wrongurl" path="/main-index.tn" />
<forward name="systemerror" path="/main-error.tn" />
<forward name="reload" path="/reload.tn" />
</action>
Is it possible to access the exact "*" wildcard value inside
LoadCustomPropertiesAction?
Regards and TIA!
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: wildcard action mapping
Posted by Joe Germuska <Jo...@Germuska.com>.
At 1:36 PM +0800 5/24/05, Richard Reyes wrote:
>Hello Guys,
>
>I got this action mapping...
>
> <action path="/login-*"
> type="net.telic.wdsap.actions.LoadCustomPropertiesAction">
> <forward name="login" path="/page-login-{1}.tn" />
> <forward name="wrongurl" path="/main-index.tn" />
> <forward name="systemerror" path="/main-error.tn" />
> <forward name="reload" path="/reload.tn" />
> </action>
>
>Is it possible to access the exact "*" wildcard value inside
>LoadCustomPropertiesAction?
Just apply the value to one of the properties of the mapping, like:
<action path="/login-*" parameter="{1}" ...
There's no more direct way; I suppose we could put it in request
scope under a key like "ACTION_MAPPING_WILDCARD_MATCH", but in the
absence of any code changes, the suggestion above will work now.
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org