RE: DynaActionForm caching issues?

2004-03-23 Thread Hubert Rabago
In my experience, it's not that the bean config is cached, it's that the form itself is cached. If your bean is not in request scope, it gets reused. Tomcat can keep a session alive between application and server restarts and so your form can survive those. What I've done when I modify my dyna

RE: DynaActionForm caching issues?

2004-03-23 Thread Norris, David A. ERDC-CERL-IL Contractor
Message- From: Hubert Rabago To: Struts Users Mailing List Sent: 3/23/04 7:28 AM Subject: RE: DynaActionForm caching issues? In my experience, it's not that the bean config is cached, it's that the form itself is cached. If your bean is not in request scope, it gets reused. Tomcat can keep

RE: DynaActionForm caching issues?

2004-03-22 Thread Norris, David A. ERDC-CERL-IL Contractor
Note: JBoss 3.2.3 includes an integrated Tomcat 4.1.29, which is of course more likely to be relevant to this problem than JBoss itself... -Original Message- From: Norris, David A. ERDC-CERL-IL Contractor [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 4:45 PM To: [EMAIL

Re: DynaActionForm IllegalArgumentException

2004-03-04 Thread Geeta Ramani
Anirudh: I'm assuming your have written getter/setter methods for this newproperty, right? Double-check the case: it should be getMNum() (and setMNum(String)).. If all else fails, clean out your work directory and try again.. Regards, Geeta Anirudh Jayanth wrote: [ERROR] RequestUtils -

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Anirudh Jayanth
] -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 7:52 PM To: Struts Users Mailing List Subject: Re: DynaActionForm IllegalArgumentException Anirudh: I'm assuming your have written getter/setter methods for this newproperty, right? Double-check

Re: DynaActionForm IllegalArgumentException

2004-03-04 Thread Geeta Ramani
Oops! My mistake entirely: sorry..(:( Ok, try rebuilding the app entirely (clean all first), then clean out the work directory and try again. Seems like something wierd is happening.. Geeta Anirudh Jayanth wrote: Hey Geeta, I am using a DynaActionFrom This doesn't require getter and

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Anirudh Jayanth
Road, 3rd Block, Jayanagar, Bangalore - 560011 Tel: 6655165 / 052 [ ext - 244 ] [EMAIL PROTECTED] -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 8:12 PM To: Struts Users Mailing List Subject: Re: DynaActionForm IllegalArgumentException

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Wendy Smoak
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED] Nope.created a whole new app. Tried just about anything. Its giving the same exception and for the same property aswell. It sure seems weird.. Cant help wondering if I am doing something fundamentally wrong though Any suggestions?

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Nitin Mulimani
I had the similar problem, and Wendy's approach worked for me. -- Nitin Ivis Technologies -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 8:43 AM To: Struts Users Mailing List Subject: RE: DynaActionForm IllegalArgumentException From

Re: DynaActionForm IllegalArgumentException

2004-03-04 Thread Geeta Ramani
] Sent: Thursday, March 04, 2004 8:12 PM To: Struts Users Mailing List Subject: Re: DynaActionForm IllegalArgumentException Oops! My mistake entirely: sorry..(:( Ok, try rebuilding the app entirely (clean all first), then clean out the work directory and try again. Seems like something wierd

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Anirudh Jayanth
] [EMAIL PROTECTED] -Original Message- From: Nitin Mulimani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 9:14 PM To: Struts Users Mailing List Subject: RE: DynaActionForm IllegalArgumentException I had the similar problem, and Wendy's approach worked for me. -- Nitin Ivis

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Wendy Smoak
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED] I wish Wendy would have won the bet. Unfortunately that too doesn't work. Actually mNum used to be messageNumber when I added it the first time. I took the struts-blank webapp, and pasted in your form-bean definition. I added the name to the

RE: DynaActionForm IllegalArgumentException

2004-03-04 Thread Anirudh Jayanth
] [EMAIL PROTECTED] -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 10:22 PM To: Struts Users Mailing List Subject: RE: DynaActionForm IllegalArgumentException From: Anirudh Jayanth [mailto:[EMAIL PROTECTED] I wish Wendy would have won

RE: DynaActionForm and radio-buttons

2004-01-08 Thread Matthias Wessendorf
Hello Daniel, let me ask, for the reason of using radio: you are setting it with: price1 OR price2 OR price3 isn´t it? so, you get an Array of size 1. (you can click only one) thats reason for ArrayIndexOutOfBoundsException perhaps, when you will set multiple values for your price-property

Re: DynaActionForm question

2004-01-03 Thread Mark Lowe
Not sure if its deprecated but i always use action path=/foo name=myForm .. rather than attribute which i don't know anything about. Cheers Mark On 2 Jan 2004, at 20:44, Sifuentes, Ben wrote: I have been trying to do the following: form-bean name=searchForm

RE: DynaActionForm question

2004-01-03 Thread Matthias Wessendorf
of type:DynaValidatorForm is named as foo request.getAttribute(foo); or request.getSession().getAttribute(foo); greetings matthias -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Saturday, January 03, 2004 2:05 PM To: Struts Users Mailing List Subject: Re

Re: DynaActionForm question

2004-01-03 Thread Mark Lowe
().getAttribute(foo); greetings matthias -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Saturday, January 03, 2004 2:05 PM To: Struts Users Mailing List Subject: Re: DynaActionForm question Not sure if its deprecated but i always use action path=/foo name=myForm .. rather

Re: dynaActionForm,JSTL, and indexed properties

2003-12-05 Thread Charles GAY
my Arraylist has got a variable size. so, i've put in the required action declarations(in struts-config.xml), the DynaActionForm in session scope, and it works! thanks a lot richard for your help! best regards, charles. Message original Sujet: Re: dynaActionForm,JSTL

Re: dynaActionForm,JSTL, and indexed properties

2003-12-04 Thread Richard Yee
Charles, If you the size of the ArrayList is constant, you can specify the form-property 'size' attribute and this will fix your problem. Otherwise, you need to use session scope to store the FormBean. The reason is that Struts will not size the colRequetes ArrayList when the form is submitted. If

Re: DynaActionForm basic problem.

2003-11-26 Thread Ricky Yahoo
a moment later, i have found the reasons :) - Original Message - From: Ricky Yahoo [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 10:44 PM Subject: DynaActionForm basic problem. hi, thanks for helping me! i have a problem by

RE: DynaActionForm and DAO

2003-10-27 Thread Chen, Gin
It's impossible.. You can't.. Don't even look into BeanUtils.copyProperties cause it won't help at all. For individual properties PropertyUtils.copyProperty doesn't work either.. Its all a rouse. -Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: DynaActionForm and disabled textfield.

2003-09-29 Thread Kazda Juraj
[mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:16 PM To: Struts Users Mailing List Subject: Re: DynaActionForm and disabled textfield. I find using a hidden field easier. On 09/27/2003 03:25 AM Jan Van Stalle wrote: Hello, in IE disabled controls are not submitted (I don't

Re: DynaActionForm and disabled textfield.

2003-09-29 Thread Adam Hardy
can I do such thing? Is it possible with with JSTL somehow (c:out tag)? Thank you. -juraj. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:16 PM To: Struts Users Mailing List Subject: Re: DynaActionForm and disabled textfield. I find using

Re: DynaActionForm and disabled textfield.

2003-09-29 Thread Adam Hardy
:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 4:16 PM To: Struts Users Mailing List Subject: Re: DynaActionForm and disabled textfield. I find using a hidden field easier. On 09/27/2003 03:25 AM Jan Van Stalle wrote: Hello, in IE disabled controls are not submitted (I don't know

Re: DynaActionForm and disabled textfield.

2003-09-27 Thread Adam Hardy
I find using a hidden field easier. On 09/27/2003 03:25 AM Jan Van Stalle wrote: Hello, in IE disabled controls are not submitted (I don't know if this is browser dependent); you might make a workaround by writing a small javascript which enables you controls when the user submits the form. Jan

Re: DynaActionForm and disabled textfield.

2003-09-26 Thread Jan Van Stalle
Hello, in IE disabled controls are not submitted (I don't know if this is browser dependent); you might make a workaround by writing a small javascript which enables you controls when the user submits the form. Jan Kazda Juraj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello

Re: DynaActionForm and nesting

2003-08-16 Thread Mark Lowe
I've got this working using ArrayList .. I couldn't imagine how arrays would allow the resizing.. I could be wrong, but I can tell you it works for sure with arrayList.. Cheers Mark On Friday, August 15, 2003, at 09:53 PM, Hary wrote: --- Hary [EMAIL PROTECTED] wrote: Hi, I am trying to build

Re: DynaActionForm and nesting

2003-08-15 Thread Hary
--- Hary [EMAIL PROTECTED] wrote: Hi, I am trying to build on the example problem given in Succeeding with Struts: Indexed properties and Beans by James Turner. http://www.developer.com/java/ejb/article.php/2233591 I have Purchase Order PO.java that has array of POLine items. The

RE: DynaActionForm

2003-08-09 Thread Paananen, Tero
Is there a place where the disadvantages of using DynaActionForm is listed? Needed this for a discussion. I haven't found any... They make my life so much easier that even if there was a disadvantage, I'd still continue using them. -TPP - maintains a suite of large Struts based applications

Re: DynaActionForm

2003-08-09 Thread Ted Husted
There are several disadvantages, which may or may not be important to a particular application: * A DynaActionForm can't be instantiated with a zero-argument constructor. To create one yourself, you have to use the Struts utility methods or use the factory method to copy an existing instance.

RE: DynaActionForm BUG?

2003-08-08 Thread Mohd Amin Mohd Din
For info, Just changed struts.jar to 1.1 ( not beta ). Everything works fine -Original Message- From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:45 PM To: [EMAIL PROTECTED] Subject: DynaActionForm BUG? Hi, I have a big form with a number of multibox

Re: DynaActionForm BUG?

2003-08-06 Thread Adam Hardy
struts to the latest version might do the trick? Amin -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:37 AM To: Struts Users Mailing List Subject: RE: DynaActionForm BUG? I have a big form with a number of multibox tags. It seems

RE: DynaActionForm BUG?

2003-08-04 Thread James Childers
I have a big form with a number of multibox tags. It seems that there are mixup of data from one multibox to another. Is this a documented bug or does it have to do something with jvm or tomcat? I have tried on solaris and windows xp both environments seem to have the same problem Do

RE: DynaActionForm reset

2003-07-29 Thread Suzette Daniel
Be sure to set the scope on your action mapping to request, it is session scope by default. Suzette H. Daniel Java Developer/Web dept 770 416.9222 ex: 5041 -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 2:26 PM To: Struts Users Mailing

Re: DynaActionForm reset

2003-07-29 Thread Sloan Seaman
Yep.. that would do it... thanks! -- Sloan - Original Message - From: Suzette Daniel [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 2:33 PM Subject: RE: DynaActionForm reset Be sure to set the scope on your action mapping to request

Re: DynaActionForm, reset(), initialize() session scope

2003-07-24 Thread Adam Hardy
Sorry Mike, what happens if you don't override reset() and call initialize() - I mean what is this empty/null collection problem with checkboxes? I haven't come across it. Adam Mike Whittaker wrote: Okay. We have to overide reset() and call initialize() to prevent the empty/null collection

Re: DynaActionForm

2003-07-15 Thread Dichotomy
The same way as any other action-form? In short, you build an html:select with an html:options tag inside, giving the collection containing the options as a parameter to html:options... -- If education is too expensive, try ignorance. On Mon, 14 Jul 2003 11:58:11 +0100 Qasim Khawaja [EMAIL

Re: DynaActionForm

2003-06-02 Thread Mark Lowe
I may find the Dyna form stuff wasn't part of struts 1.0 I'm not sure what version of 0.9 you must have been running to have all the dyna stuff running.. If you want to have your form bean generated without writing classes then i thing you'll have to move to a 1.1 distribution of struts. You

Re: DynaActionForm

2003-06-02 Thread Giovanni Di Lembo
Where I should find DynaActionform, maybe packed in struts.jar ? It is not there ; where should I find it? cheers - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 8:17 PM Subject: Re: DynaActionForm I may

Re: DynaActionForm

2003-06-02 Thread Mark Lowe
PROTECTED] Sent: Sunday, June 01, 2003 8:17 PM Subject: Re: DynaActionForm I may find the Dyna form stuff wasn't part of struts 1.0 I'm not sure what version of 0.9 you must have been running to have all the dyna stuff running.. If you want to have your form bean generated without writing classes

RE: DynaActionForm

2003-06-02 Thread Brandon Goodin
) you need :-D Brandon Goodin -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 1:12 PM To: Struts Users Mailing List Subject: Re: DynaActionForm in 1.1 On Sunday, Jun 1, 2003, at 20:03 Europe/London, Giovanni Di Lembo wrote: Where I should find

Re: DynaActionForm

2003-06-02 Thread Mark Lowe
To: Struts Users Mailing List Subject: Re: DynaActionForm in 1.1 On Sunday, Jun 1, 2003, at 20:03 Europe/London, Giovanni Di Lembo wrote: Where I should find DynaActionform, maybe packed in struts.jar ? It is not there ; where should I find it? cheers - Original Message - From: Mark Lowe

RE: DynaActionForm

2003-06-02 Thread Brandon Goodin
:-)) I was hoping you would catch the humor :-D Brandon Goodin -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 3:26 PM To: Struts Users Mailing List Subject: Re: DynaActionForm Note to self.. I must give clearer answers .. and not mess up my

Re: DynaActionForm

2003-06-02 Thread Mark Lowe
: Sunday, June 01, 2003 3:26 PM To: Struts Users Mailing List Subject: Re: DynaActionForm Note to self.. I must give clearer answers .. and not mess up my pronouns.. :o) On Sunday, Jun 1, 2003, at 20:50 Europe/London, Brandon Goodin wrote: Let me help mark... 1) You must have Struts 1.1 to use

RE: DynaActionForm

2003-06-02 Thread Brandon Goodin
: Re: DynaActionForm its really none of my business.. but have you been working all through the weekend? On Sunday, Jun 1, 2003, at 22:37 Europe/London, Brandon Goodin wrote: :-)) I was hoping you would catch the humor :-D Brandon Goodin -Original Message- From: Mark Lowe [mailto

Re: DynaActionForm

2003-06-02 Thread Johan
Goodin -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 4:19 PM To: Struts Users Mailing List Subject: Re: DynaActionForm its really none of my business.. but have you been working all through the weekend? On Sunday, Jun 1, 2003, at 22:37 Europe/London

Re: DynaActionForm

2003-06-02 Thread Mark Lowe
where technology opportunities are thin. Brandon Goodin -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 4:19 PM To: Struts Users Mailing List Subject: Re: DynaActionForm its really none of my business.. but have you been working all through

Re: DynaActionForm

2003-06-02 Thread Mark Lowe
: Sunday, June 01, 2003 3:26 PM To: Struts Users Mailing List Subject: Re: DynaActionForm Note to self.. I must give clearer answers .. and not mess up my pronouns.. :o) On Sunday, Jun 1, 2003, at 20:50 Europe/London, Brandon Goodin wrote: Let me help mark... 1) You must have Struts 1.1 to use

Re: DynaActionForm

2003-06-02 Thread Vic Cekvenich
. AH! The joys of being a self-employed Husband/Dad in a place where technology opportunities are thin. Brandon Goodin -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 4:19 PM To: Struts Users Mailing List Subject: Re: DynaActionForm its really none

Re: DynaActionForm Coolness

2003-05-31 Thread Ted Husted
OK, my turn =:) Given an Action that just does this: DynaActionForm input = (DynaActionForm) form; Map map = input.getMap(); request.setAttribute(Tokens.LIST,map); return mapping.findForward(Tokens.SUCCESS); How come this works: html:link action=/MultipleParametersForm name=%=Tokens.LIST%

Re: DynaActionForm Coolness

2003-05-31 Thread Kris Schneider
My guess would be that a special code path is taken by PropertyUtils.getProperty if the bean is a DynaBean so that it's looking for map as a dyna property and not a standard bean property. Ted Husted wrote: OK, my turn =:) Given an Action that just does this: DynaActionForm input =

RE: DynaActionForm Coolness

2003-05-31 Thread Steve Raeburn
Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: May 30, 2003 1:40 PM To: Struts Users Mailing List Subject: Re: DynaActionForm Coolness OK, my turn =:) Given an Action that just does this: DynaActionForm input = (DynaActionForm) form; Map map = input.getMap

RE: DynaActionForm Coolness

2003-05-31 Thread Steve Raeburn
Aha! Found the culprit. From PropertyUtilsBean.getSimpleProperty()... // Handle DynaBean instances specially if (bean instanceof DynaBean) { DynaProperty descriptor = ((DynaBean) bean).getDynaClass().getDynaProperty(name); if (descriptor == null) {

Re: DynaActionForm with logic:present

2003-04-01 Thread Susan Bradeen
It appears (I am sure I missed some docs about this somewhere ... ) that DynaActionForm String properties are initialized to an empty String, unless otherwise set in the config file. The logic:present will never work as expected, since there aren't any null String property values. Subclassing

Re: DynaActionForm with logic:present

2003-04-01 Thread Ian Hunter
check logic:empty - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:32 PM Subject: Re: DynaActionForm with logic:present It appears (I am sure I missed some docs about this somewhere

Re: DynaActionForm with logic:present

2003-04-01 Thread Susan Bradeen
logic:empty - Original Message - From: Susan Bradeen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:32 PM Subject: Re: DynaActionForm with logic:present It appears (I am sure I missed some docs about this somewhere

Re: DynaActionForm if not set condition

2003-03-25 Thread Craig R. McClanahan
On Tue, 25 Mar 2003, Adam Sherman wrote: Date: Tue, 25 Mar 2003 20:50:39 -0500 From: Adam Sherman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: DynaActionForm if not set condition How do I check if a field hasn't been set at all?

Re: DynaActionForm if not set condition

2003-03-25 Thread Adam Sherman
On 03/25/03 19:37:24 -0800 Craig R. McClanahan wrote: The first form will correctly check whether the field has been set to anything or not. The second will never work -- if you want to check for a zero-length String, do this instead: .equals((String) DynaActionForm.get(fieldName) Makes sense,

Re: DynaActionForm

2003-03-11 Thread Robert McIntosh
Out of curiosity, couldn't something like the FastHashMap be used to implement this? Or does the second note in the JavaDocs (about not cross platform) keep it out? - Robert Craig R. McClanahan wrote: On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote: Date: Mon, 10 Mar 2003 17:07:29 -0700 From:

Re: DynaActionForm

2003-03-11 Thread khalim
To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: DynaActionForm On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote: Date: Mon, 10 Mar 2003 17:07:29 -0700 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List

Re: DynaActionForm

2003-03-11 Thread khalim
] cc: [EMAIL PROTECTED] Subject:Re: DynaActionForm Hi, We have put our code that manipulates the FormBeanConfigs in the init() method of our custom Plugin which is called before freeze. Our code adds some FormPropertyConfigs to the FormBeanConfigs. However we now get

Re: DynaActionForm

2003-03-10 Thread Craig R. McClanahan
On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote: Date: Mon, 10 Mar 2003 17:07:29 -0700 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: DynaActionForm Hi, We are creating a derivitive of DynaActionForm

Re: DynaActionForm and Checkbox

2003-03-09 Thread Jose Gonzalez Gomez
Maybe you have your DynaActionForm bean stored in session? If so, you should subclass DynaActionForm and provide a reset method. Jose Tony Tahbaz wrote: Hello All, I'm having a bit of trouble using a DynaActionForm with an html checkbox. My form-bean looks like: form-bean name=testForm

Re: DynaActionForm vs ActionForm

2003-02-26 Thread Nick Sharples
James Prance writes: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? I thought there may be something to do with session states but i'm not sure. Uploading files with FileForms?

Re: DynaActionForm vs ActionForm

2003-02-26 Thread James Prance
can you give an example.. Nick Sharples [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] James Prance writes: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? I thought

Re: DynaActionForm vs ActionForm

2003-02-26 Thread Gemes Tibor
James Prance wrote: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? you want your own reset() implementation you have a tool which generates your Forms (eg xdoclet) Tib

Re: DynaActionForm vs ActionForm

2003-02-26 Thread Nick Sharples
James Prance writes: can you give an example.. Nick Sharples [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] James Prance writes: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an

RE: DynaActionForm vs ActionForm

2003-02-26 Thread Wendy Smoak
Gemes Tibor wrote: you want your own reset() implementation You can still override reset in DynaActionForm... you just get out of writing all the get/set methods. I have a DynaValidatorForm in which I've implemented both reset and validate-- I couldn't convince the validator to handle a

Re: DynaActionForm and from-property

2003-02-10 Thread Robert S. Sfeir
On Monday, Feb 10, 2003, at 13:15 US/Eastern, John C Cartwright wrote: Hello All, I'm working through Chuck Cavaness' Programming Jakarta Struts book (and enjoying it, by the way!). I ran across the statement in reference to form-properties and DynaActionForms ...you should try to use only

Re: DynaActionForm and from-property

2003-02-10 Thread John C Cartwright
Thanks for your prompt and helpful reply, Robert! Could you clarify for me what you meant by ...You would pass a View objet to the jsp page. ? Do you mean put the view object into session scope and have the JSP pull it from there? Can I store this in the ActionForm instance itself? or is it

RE: Dynaactionform

2003-02-05 Thread Wendy Smoak
I've a DynamicAction form and i need to generate an sql insert statement from the properties and values contained within the aforementioned form... I usually generate my sql from such things by casting to a map but ActionForms don't seem to like this.. What do you mean by 'ActionForms

RE: Dynaactionform

2003-02-05 Thread Kris Schneider
DynaActionForm has a getMap method that Returns the Map containing the property values. Quoting Wendy Smoak [EMAIL PROTECTED]: I've a DynamicAction form and i need to generate an sql insert statement from the properties and values contained within the aforementioned form... I usually

Re: Dynaactionform

2003-02-05 Thread Mark Lowe
umm.. my appologies for using anthropomophic language, sorry i was trying to mail the struts list but obviously found some perl group.. :) I MEAN I GET A CLASS CAST EXCEPTION becuase they're not supposed to do that i suppose., Sorry but getting a Map or parameters and generating a query string

Re: Dynaactionform

2003-02-05 Thread Mark Lowe
Mercoledì, 5 feb 2003, alle 17:53 Europe/Rome, Kris Schneider ha scritto: DynaActionForm has a getMap method that Returns the Map containing the property values. Quoting Wendy Smoak [EMAIL PROTECTED]: I've a DynamicAction form and i need to generate an sql insert statement from the

RE: Dynaactionform

2003-02-05 Thread Craig R. McClanahan
On Wed, 5 Feb 2003, Kris Schneider wrote: Date: Wed, 5 Feb 2003 11:53:46 -0500 From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Dynaactionform DynaActionForm has a getMap method

Re: Dynaactionform

2003-02-05 Thread Mark Lowe
Thanks man i didn't think my question was entirley erroronous... I saw the getMap thingy just my struts was a few weeks older than the docs thanks again mark Mercoledì, 5 feb 2003, alle 17:53 Europe/Rome, Kris Schneider ha scritto: DynaActionForm has a getMap method that Returns the Map

RE: Dynaactionform

2003-02-05 Thread Greg.Reddin
You could do something like this: DynaActionForm dynaForm = (DynaActionForm) form; DynaProperty[] properties = form.getDynaClass().getDynaProperties(); for (int i = 0; i properties.length; i++){ DynaProperty property = properties[i]; // do whatever you need to do with property name

RE: Dynaactionform

2003-02-05 Thread Kris Schneider
Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Dynaactionform DynaActionForm has a getMap method that Returns the Map containing the property values. This solution works for DynaActionForm in particular (where the getMap() method was added

RE: Dynaactionform

2003-02-05 Thread Greg.Reddin
Not sure how I missed the getMap() method in the API. That makes the advice given below seem rather ridiculous... Greg -Original Message- From: Reddin, Greg Sent: Wednesday, February 05, 2003 10:48 AM To: 'Struts Users Mailing List' Subject: RE: Dynaactionform You could do

RE: Dynaactionform

2003-02-05 Thread Greg.Reddin
Sorry but getting a Map or parameters and generating a query string is plain enough without sending code.. Or do you sit around all day writing myForm.get(somevalue) all day.. are the life of rielly huh.. perhaps i should return to academia :) In trogloditian terms Map formMap =

RE: Dynaactionform

2003-02-05 Thread Craig R. McClanahan
On Wed, 5 Feb 2003, Kris Schneider wrote: Date: Wed, 5 Feb 2003 12:19:22 -0500 From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Dynaactionform Isn't this what BeanUtils.describe

RE: Dynaactionform

2003-02-05 Thread Kris Schneider
PROTECTED] Subject: RE: Dynaactionform DynaActionForm has a getMap method that Returns the Map containing the property values. This solution works for DynaActionForm in particular (where the getMap() method was added). For general purpose extraction of name/value pairs

RE: DynaActionForm question

2003-01-21 Thread pqin
To: Struts Users Mailing List Subject: Re: DynaActionForm question On Mon, 20 Jan 2003, Giri Alwar wrote: I have a question for the folks in general. What is the main reason for using the DynaActionForm class (as opposed to writing your own ActionForm)? That's it in a nutshell :-). Having

Re: DynaActionForm question

2003-01-21 Thread Gemes Tibor
2003. janur 21. 15:35 dtummal [EMAIL PROTECTED] ezt rtad: Is it possible to instantiate an instance of DynaActionForm before I populate the page? Yes, for an example in your prepopulating action. Create an action which collects the data and populates your form. And assign the same actionform

Re: DynaActionForm question

2003-01-20 Thread Kris Schneider
Pedantic clarification inline Quoting Craig R. McClanahan [EMAIL PROTECTED]: On Sun, 19 Jan 2003, Mark Minnie wrote: Date: Sun, 19 Jan 2003 21:04:55 -0800 From: Mark Minnie [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:

Re: DynaActionForm question

2003-01-20 Thread Giri Alwar
The DynaActionForm differs from the ActionForm in one critical way: the ActionForm class is a real Javabean with getter/setters for your properties. Hence it can be used with other third party taglibs such as JSTL etc. The DynaActionForm does not have getters/setters for your properties. The only

RE: DynaActionForm question

2003-01-20 Thread James Turner
From: Giri Alwar [mailto:[EMAIL PROTECTED]] Subject: Re: DynaActionForm question The DynaActionForm differs from the ActionForm in one critical way: the ActionForm class is a real Javabean with getter/setters for your properties. Hence it can be used with other third party taglibs

Re: DynaActionForm question

2003-01-20 Thread Craig R. McClanahan
On Mon, 20 Jan 2003, Giri Alwar wrote: I have a question for the folks in general. What is the main reason for using the DynaActionForm class (as opposed to writing your own ActionForm)? That's it in a nutshell :-). Having to write fewer classes is goodness. While you don't have to write

RE: DynaActionForm question

2003-01-19 Thread James Turner
From: Mark Minnie [mailto:[EMAIL PROTECTED]] String username = ((LoginForm)form).getUsername(); String password = ((LoginForm)form).getPassword(); The LoginForm was the form bean that I had created manually in java. I deleted the LoginForm and replaced the form bean

Re: DynaActionForm question

2003-01-19 Thread Craig R. McClanahan
On Sun, 19 Jan 2003, Mark Minnie wrote: Date: Sun, 19 Jan 2003 21:04:55 -0800 From: Mark Minnie [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: DynaActionForm question Struts in Action on page 162 reads: You can use a

Re: DynaActionForm change with 1.1-beta3 download

2002-12-31 Thread Hemanth Setty
More specifically... pre 1.1b3 [DEBUG] org.apache.struts.util.RequestUtils - -- DynaActionForm[dynaClass=surveyMaintForm,category=NULL,currentNodeId=NULL,cmd=NULL,ranking=NULL,nodeName=NULL] 1.1b3 [DEBUG] org.apache.struts.util.RequestUtils - --

Re: DynaActionForm in session scope

2002-12-13 Thread Gemes Tibor
2002. december 13. 20:00 dátummal Charles ezt írtad: Thanks for your help. But I'm still a little confused. How do you extend a DynaActionForm? I thought it was created on the fly. Only the properties are created on the fly, the class itself is org.apache.struts.action.DynaActionForm. So here

Re: DynaActionForm in session scope

2002-12-13 Thread Charles
Hi Tibor, Good examples and explanations. I have a clearer picture of how it works now. Thanks! - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 13, 2002 12:15 AM Subject: Re: DynaActionForm in session scope

Re: DynaActionForm in session scope

2002-12-12 Thread Charles
tags can be used to present the reset() being called? Thanks again Charles - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 11, 2002 1:31 AM Subject: Re: DynaActionForm in session scope 2002. december 12. 02

Re: DynaActionForm in session scope

2002-12-11 Thread Gemes Tibor
2002. december 12. 02:29 dátummal Charles ezt írtad: Hi all, Can a DynaValidatorForm be in session scope? Whenever I submit a page that uses a DynaValidatorForm, which is in session scope, it resets itself and all the previously stored data are lost. I did not call the form reset function at

Re: DynaActionForm in session scope

2002-12-11 Thread Gemes Tibor
2002. december 12. 02:29 dátummal Charles ezt írtad: Tried searching the message list at nagoya but the search function doesn't seem to be working. http://www.google.com/search?q=struts-user+session+reset+DynaActionForm+site%3Awww.mail-archive.com Tib -- To unsubscribe, e-mail:

RE: DynaActionForm problem - IllegalArgumentException: No bean specified

2002-12-10 Thread Alvarado, Juan (c)
I don't believe DynaActionForm supports java.util.Collection. Please correct me if I'm wrong. Thanks -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:27 AM To: Struts User Subject: DynaActionForm problem - IllegalArgumentException:

Re: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gemes Tibor
2002. november 18. 15:32 dátummal Gunasekaran. V ezt írtad: Greetings. Is there any known bug in BeanUtils package for automatic population of data from JSP. ... While submitting the reset() method is called which sets null to primitive javabean. And in PropertyUtils.getProperty gets null

RE: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gunasekaran. V
List Subject: Re: DynaActionForm Primitive JavaBean 2002. november 18. 15:32 dátummal Gunasekaran. V ezt írtad: Greetings. Is there any known bug in BeanUtils package for automatic population of data from JSP. ... While submitting the reset() method is called which sets null to primitive

Re: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gemes Tibor
2002. november 18. 15:59 dátummal Gunasekaran. V ezt írtad: Greetings Tibor. I am not setting to null. I guess from 1.1 onwards the framework calls reset() by default. Is there anyway to get around this problem? But who wrote that reset()? reset() was called in 1.0 for every request expect

  1   2   >