Hi! I'm a Struts user since dez/2001 and we've been used this approach bellow in order to pre-populating DynaActionForms for a long time in our company...
...But now I need to do it based on my own customized ActionMapping properties. For example, we use this kind of extension to declare a DTO/VO and many others Use Case "declarative tags": <action path="/pessoa" name="pessoaForm" type="com.empresa.app.controle.action.CcPessoaAction" className="com.powerlogic.jcompany.controle.PlcActionMappingDet" validate="false" parameter="evento" input="def.pessoa"> <set-property property="logicaPlc" value="crud#simples"></set-property> <set-property property="valueObject" value="com.empresa.app.vo.CcPessoa" /> (others...) <forward name="mesmaPagina" path="def.pessoa"/> </action> I couldn't find any array or map in the ActionConfig class...so how could I get my specialized ActionMapping properties inside a Struts plugin? Thanks in advance! Paulo Alvim Powerlogic - Brazil -----Mensagem original----- De: Craig McClanahan [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 25 de novembro de 2004 15:18 Para: Struts Users Mailing List; [EMAIL PROTECTED] Assunto: [struts] Re: Dynamically adding an ActionMapping You will not be able to do this in a ServletContextListener, because that gets executed before the Struts servlet has initialized the data structures representing the configuration information. However, if you write to the Struts PlugIn API, the init() method of this class is called after the configuration file has been loaded, but before the configuration is frozen -- so you can add your own configuration objects at that time. Craig On Thu, 25 Nov 2004 00:04:00 -0800, Tony Li <[EMAIL PROTECTED]> wrote: > Hi all - > > I haven't been able to locate much information about dynamically adding an > ActionMapping. I would like to do this at application startup through my > StartupListener (courtesy of Matt Raible's AppFuse). I'm really only > interested in adding a few simple ForwardActions. > > Any ideas? > > Thanks, > > Tony > > --------------------------------------------------------------------- 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]