Re: declaring action mappings at runtime

2003-10-31 Thread Ahmet ISIK
Kirk, thanks for the advice, yes, you're right I think. I'm going to change it that way in the first refactoring time available. Kirk Wylie wrote: I know this is a little OT, but had you thought about doing it with xdoclet? Particularly if the Hibernate configurations are coming out of xdoclet

Re: declaring action mappings at runtime

2003-10-30 Thread Ahmet ISIK
I'm doing it in a plugin. My purpose is to develop generic CRUD operations, views and forms for any model object that is persisted using Hibernate. For this, I introspect Hibernate config and provide form fields according to underlying object's properties. I'm declaring actionmappings at

Re: declaring action mappings at runtime

2003-10-30 Thread Craig R. McClanahan
Ahmet ISIK wrote: I'm doing it in a plugin. My purpose is to develop generic CRUD operations, views and forms for any model object that is persisted using Hibernate. For this, I introspect Hibernate config and provide form fields according to underlying object's properties. I'm declaring

Re: declaring action mappings at runtime

2003-10-30 Thread Kirk Wylie
I know this is a little OT, but had you thought about doing it with xdoclet? Particularly if the Hibernate configurations are coming out of xdoclet in the first place (and everything's set at compile time), you could probably extend the Hibernate templates pretty easily to generate the action

declaring action mappings at runtime

2003-10-29 Thread Ahmet ISIK
Hi, Is it possible to declare struts action mappings at runtime, and how? Thanks in advance -- Ahmet ISIK Ideal Teknoloji Bilisim Çözümleri A.S.- Iliskisel Is Kanali Yazilim Muhendisi http://www.idealteknoloji.com - To

Re: declaring action mappings at runtime

2003-10-29 Thread Martin Cooper
Ahmet ISIK [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is it possible to declare struts action mappings at runtime, and how? No, it's not possible. The config is read in at application startup and is then frozen. (The reason it's done this way is so that access to the config

Re: declaring action mappings at runtime

2003-10-29 Thread Ahmet ISIK
thanks Martin, I have found a solution. I have acquired module config by Globals.MODULE_KEY key from app context. Then I added programmatically configured ActionMappings to module config object. after that it is possible to use those action mappings. Is this a bad practice? Martin Cooper

RE: declaring action mappings at runtime

2003-10-29 Thread Zhang, Larry (L.)
If you want to find out which will be next page to go, you can create an ActionForward object and customize the parameter. -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: Re: declaring action

Re: declaring action mappings at runtime

2003-10-29 Thread Martin Cooper
Ahmet ISIK [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanks Martin, I have found a solution. I have acquired module config by Globals.MODULE_KEY key from app context. Then I added programmatically configured ActionMappings to module config object. after that it is possible to