Re: Add action mappings on the fly

2005-02-22 Thread Diego Manilla Suárez
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

Re: Add action mappings on the fly

2005-02-21 Thread Don Brown
Or use an action mapping that matches "/*". I use them with MappingDispatchAction to match "/*/*" where the first is the action class and the second is the function to call. Don On Mon, 21 Feb 2005 22:40:17 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Diego, > > Here is an idea: You c

RE: Add action mappings on the fly

2005-02-21 Thread David G. Friedman
Diego, Here is an idea: You could always set your on-the-fly actions under a module. Then you could use the unknown="true" attribute to route all unmatched /module/*.do mappings to your new Action, which handles the lookup and dynamic dispatching to the appropriate pages/actions, probably via a m

Re: Add action mappings on the fly

2005-02-21 Thread Joe Germuska
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 wh

Re: Add action mappings on the fly

2005-02-21 Thread Frank W. Zammetti
It can be done, but I suspect everyone on the list will tell you not to do it, and for very good reasons. However, I'm one of those "here's your rope sir, try not to hang yourself with it" kind of guys, so here's how... The ModuleConfigImpl has a member "configured". This is what determines i

Add action mappings on the fly

2005-02-21 Thread Diego Manilla Suárez
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? Thanks in advance. - To u