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
-- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]