struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Manilla Suárez <diego.mani...@xeridia.com>
Subject Re: Add action mappings on the fly
Date Tue, 22 Feb 2005 10:43:59 GMT
Thanks everyone for your replies. I didn't know the wildcard matching 
feature in action mappings. With this feature and map-backed ActionForms 
now I can do more or less what I wanted to do.

Regards,
Diego.

Joe Germuska wrote:

> At 12:39 PM +0100 2/21/05, Diego Manilla Suárez wrote:
>
>> Hi! I'm trying to add an ActionMapping definition dinamically (using 
>> ModuleConfig.addActionConfig method), but I get an 
>> IllegalStateException (configuration is frozen). Is there a way to do 
>> what I want?
>
>
> Well, you haven't really explained what you want! As Struts is 
> implemented, no, you can't add action configs; on the other hand,  
> ModuleConfig is an interface, so you could provide a different 
> implementation of ModuleConfig which either didn't use freezing 
> (probably a bad idea, unless you come up with an alternative way to 
> deal with synchronization issues in a multi-threaded execution 
> environment) or which created a new ActionConfig object as needed.  
> This is essentially what Struts already does in supporting wild-card 
> matched action paths.  It locates the ActionConfig whose path pattern 
> matches the current request path and clones it, optionally replacing 
> certain values based on the match.
>
> Joe
>


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


Mime
View raw message