Re: Dynamically altering struts configuration

2005-11-23 Thread Benjamin Lerman
> can you please demonstrate how u did that? where do we use the ModuleConfig > Object... Well, you have two solutions to get an ModuleConfig object. You can get it in a struct actions, using getServletContext().getAttribute(Globals.MODULE_KEY), or in any place that can get the ServletContext,

Re: Dynamically altering struts configuration

2005-11-21 Thread Simpy Ahuja
can you please demonstrate how u did that? where do we use the ModuleConfig Object... On 11/22/05, Benjamin Lerman <[EMAIL PROTECTED]> wrote: > > > I don't actually know. > > I found out. With a ModuleConfig object you can retrieve the ActionForm > mappings and modify it. > > > But why would you w

Re: Dynamically altering struts configuration

2005-11-21 Thread Benjamin Lerman
> I don't actually know. I found out. With a ModuleConfig object you can retrieve the ActionForm mappings and modify it. > But why would you want to? I want to be able to define an external module that plugs in an existing struts application. This module must define a .jsp file and a form to g

Re: Dynamically altering struts configuration

2005-11-21 Thread Dave Newton
Benjamin Lerman wrote: Let say I have a line like this one in my struts-config.xml: Can I change dynamically the type associated to fooForm ? I don't actually know. But why would you want to? Perhaps looking at a custom request processor and implementing processActionForm might be a possi

Dynamically altering struts configuration

2005-11-20 Thread Benjamin Lerman
Hi all, Let say I have a line like this one in my struts-config.xml: Can I change dynamically the type associated to fooForm ? Thanks Benjamin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,