For what it is worth, Vinod, you can get the effective equivalent of adding a dynamic ActionMapping by providing an application or class to deal with the fields of the ActionMapping. For example, you might forgo most aspects of the ActionMapping and provide a dynamic class accessible by a base action class which handles parameter, input, etc., so long as you don't need those for the Struts internals.
If you do, of course, that is another matter altogether. But, even that is not too hard to change, if you look at the internals a bit. I would personally be interested in where you go with this, if it still interests you after you have seen Joe's information. Thanks, Jack On 4/26/05, vinod perla <[EMAIL PROTECTED]> wrote: > vinod wrote: > Thankyou very much Mr.Joe Germuska u've given enough information for me. > regards > vinod > > On 4/26/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > > At 5:19 PM +0530 4/26/05, vinod perla wrote: > > >vinod wrote: > > >Is it possible to create the Action Mapping Definitions dynamically? > > >If so please help me how to do this. > > > > To do this, you're really going to have to dig into Struts' code; as > > it is now, you can't dynamically add new ActionMappings to the > > ModuleConfig because it is frozen after the config files are read; > > otherwise, you'd have synchronization problems. If you looked at > > ModuleConfig, perhaps you could come up with an alternate > > implementation which managed the sync issues and still allowed you to > > dynamically add ActionMappings. > > > > Struts itself makes new ActionMappings as part of wild-card path > > matching, but those mappings only last for the duration of the > > request they are servicing. > > > > 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] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]