struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <...@Germuska.com>
Subject Re: wildcard action mapping
Date Tue, 24 May 2005 11:30:31 GMT
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


Mime
View raw message