RE: database - bean - form, what is the best way to do it?
this might be of help... http://jakarta.apache.org/struts/faqs/database.html -Original Message- From: Andy Cheng [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:44 PM To: [EMAIL PROTECTED] Subject: database - bean - form, what is the best way to do it? When doing struts, I am always loading or saving data to a bean (or a list of beans) and then display it to the form. Is there a ways to make this process very automatic, like writing a mapping file, and then everything is done? I spent in the past 2 full days just keep doing this kind of mapping and it is getting me real crazy. Thanks Andy
RE: Using an extension of ModuleConfigImpl
Thanks, Rob. This should work quite nicely. I'll try it out and let you know. --aslam -Original Message- From: Rob Leland [mailto:[EMAIL PROTECTED] Sent: Saturday, July 26, 2003 12:31 PM To: Struts Users Mailing List Subject: Re: Using an extension of ModuleConfigImpl Rob Leland wrote: Rob Leland wrote: Karachiwala, Aslam wrote: I do use extensions of ActionConfig ForwardConfig. What I've done is implement a layer of extensions of Struts classes, in which I've added custom fields and methods that I need. I'd like to do the same for ModuleConfig. Is that even possible without tinkering with the Struts code? I am assuming you want to use the same extension of the ModuleConfig for all modules ? If so then I'll see about adding a servlet parameter to set the factory used. The latest nightly build has a new ActionServlet Parameter named 'configFactory'. Set it to the factory that creates your implementation of the ModuleConfig interface in the web.xml -Rob
Using an extension of ModuleConfigImpl
Hi, all. In Struts 1.1, is there a way to use one's own implementation/extension of ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how this could be done in any of the config *.xml files. If this is not configurable then an option that was suggested to me was to invoke ModuleConfigFactory.setFactoryClass() and set that to my own factory class which will create my extension of ModuleConfigImpl. If I wanted to do this then where/when should I set the factory class? --aslam
RE: Using an extension of ModuleConfigImpl
I do use extensions of ActionConfig ForwardConfig. What I've done is implement a layer of extensions of Struts classes, in which I've added custom fields and methods that I need. I'd like to do the same for ModuleConfig. Is that even possible without tinkering with the Struts code? --aslam -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:41 AM To: Struts Users Mailing List Subject: RE: Using an extension of ModuleConfigImpl You can write minor extensions to some config elements like action and forward. This extension class is named via the className attribute of those elements. -Original Message- From: Karachiwala, Aslam [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:39 AM To: Struts-users (E-mail) Subject: Using an extension of ModuleConfigImpl Hi, all. In Struts 1.1, is there a way to use one's own implementation/extension of ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how this could be done in any of the config *.xml files. If this is not configurable then an option that was suggested to me was to invoke ModuleConfigFactory.setFactoryClass() and set that to my own factory class which will create my extension of ModuleConfigImpl. If I wanted to do this then where/when should I set the factory class? --aslam