struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: ActionMapping - regexp pattern matching for path
Date Thu, 18 Dec 2003 02:06:52 GMT
Not in 1.1, but you can use wildcards in the nightly build.

http://jakarta.apache.org/struts/userGuide/building_controller.html#action_mapping_wildcards

Sergey Proskurnya wrote:

> Hello to all,
> 
> In Struts-1.1 it is possible to bind Actions to static URL path,
> but is it possible to bind Actions to the set of the paths,
> described by Java regular expression?
> For example:
> <action-mappings>
>     <action	path="/users/.*"
> 		    type="com.mysite.UserPageAction"
> 		    scope="session"
> 		    validate="false">
> 		</action>
> </action-mappings>
> 
> I mean that in this case the requests for "/users/John/",
> "/users/Mary/" and etc. will be handled by "com.mysite.UserPageAction".
> 
> Thanks for attention,
>       Sergey Proskurnya.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
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