Re: DynaValidatorForm and BigDecimal problem

2014-06-05 Thread abhijeettomar
Hi all, I have also faced same problem in my application so i solved this problem using Custom converter successfully. but i have a question, using custom converter may be some issue in our system performance ? It may be slow response. Is it true ? Thanks, Abhijeet Tomar -- View this messa

[SOLVED] Re: DynaValidatorForm arrives as null (that of passed by ActionForm) in execute

2009-02-24 Thread sledge
Problem solved: I was using a wrong type in form-properties: java.lang._b_oolean sledge wrote: > > Struts 1.1; There's something I think I am doing not right.. Here is the > code: > > action .java: > public class EditColActionInit extends Action { > public ActionForward execute(ActionMap

Re: DynaValidatorform -->

2007-09-11 Thread Paul Benedict
John, what version of Struts? On 9/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > Possibly because there's no "input" attribute, so it's > bombing since it doesn't know what the input forward > for the form is? > > d. > > --- john lee <[EMAIL PROTECTED]> wrote: > > > i have an DynaValidatorForm

Re: DynaValidatorform -->

2007-09-10 Thread Dave Newton
Possibly because there's no "input" attribute, so it's bombing since it doesn't know what the input forward for the form is? d. --- john lee <[EMAIL PROTECTED]> wrote: > i have an DynaValidatorForm as following: > > inside struts-config.xml > > > type"java.lang.String[] "/>

Re: DynaValidatorForm with java.util.Date

2007-03-13 Thread Gareth Evans
s it does this for you: http://struts.apache.org/1.x/userGuide/building_controller.html#lazy_action_form_classes Niall -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: maandag 12 maart 2007 14:49 To: Struts Users Mailing List Subject: Re: DynaValidatorForm with java.util.Date

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: maandag 12 maart 2007 16:46 To: Struts Users Mailing List Subject: Re: DynaValidatorForm with java.util.Date On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Where do I register such a convertor? Simp

Re: DynaValidatorForm with java.util.Date

2007-03-12 Thread Niall Pemberton
x/userGuide/building_controller.html#lazy_action_form_classes Niall -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: maandag 12 maart 2007 14:49 To: Struts Users Mailing List Subject: Re: DynaValidatorForm with java.util.Date On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
enter the page, this ArrayList is gone. What am I doing wrong here? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: maandag 12 maart 2007 14:49 To: Struts Users Mailing List Subject: Re: DynaValidatorForm with java.util.Date On 3/12/07, [EMAIL PROTECTED] &l

Re: DynaValidatorForm with java.util.Date

2007-03-12 Thread Niall Pemberton
TECTED] Sent: maandag 12 maart 2007 14:06 To: Struts Users Mailing List Subject: Re: DynaValidatorForm with java.util.Date The fields of action forms, including DynaValidatorForms are populated from request parameters, and these values are all in String variables. I suggest using a String variabl

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
EMAIL PROTECTED] Sent: maandag 12 maart 2007 14:06 To: Struts Users Mailing List Subject: Re: DynaValidatorForm with java.util.Date The fields of action forms, including DynaValidatorForms are populated from request parameters, and these values are all in String variables. I suggest using a String var

Re: DynaValidatorForm with java.util.Date

2007-03-12 Thread Hubert Rabago
ble, then I'm in deep :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: maandag 12 maart 2007 10:26 To: user@struts.apache.org Subject: RE: DynaValidatorForm with java.util.Date Ok, I did some tests and debugging and this is the result: The errormsg is &q

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
AIL PROTECTED] Sent: maandag 12 maart 2007 10:26 To: user@struts.apache.org Subject: RE: DynaValidatorForm with java.util.Date Ok, I did some tests and debugging and this is the result: The errormsg is "Cannot assign value of type 'java.lang.String' to property 'txtFieldName&

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
Ok, I did some tests and debugging and this is the result: The errormsg is "Cannot assign value of type 'java.lang.String' to property 'txtFieldName' of type 'java.util.Date'". I fill that field with following code: modifyForm.set("txtFieldName",new Date()); So the object I'm assigning to that

RE: Re: DynaValidatorForm and BigDecimal problem

2007-03-02 Thread Gundersen, Richard
ish Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Thursday, March 01, 2007 8:40 PM To: user@struts.apache.org Subject: Re: DynaValidatorForm and BigDecimal problem Bear in mind that this way, if the use

Re: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Laurie Harper
lto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 4:13 PM To: Struts Users Mailing List Subject: Re: DynaValidatorForm and BigDecimal problem It has nothing to do with Struts, the error message is saying that commons BeanUtils cannot convert the string from the form submit into a BigDecimal.

RE: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Gundersen, Richard
ginal Message- From: Ed Griebel [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 4:13 PM To: Struts Users Mailing List Subject: Re: DynaValidatorForm and BigDecimal problem It has nothing to do with Struts, the error message is saying that commons BeanUtils cannot convert the string fro

RE: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Gundersen, Richard
Bank plc 24 Mount Street Manchester M2 3LS -Original Message- From: Ed Griebel [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 4:13 PM To: Struts Users Mailing List Subject: Re: DynaValidatorForm and BigDecimal problem It has nothing to do with Struts, the error message is saying

Re: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Ed Griebel
It has nothing to do with Struts, the error message is saying that commons BeanUtils cannot convert the string from the form submit into a BigDecimal. Turns out that your issue is BigDecimal is not as permissive as Double when it converts a non-numeric string to a BigDecimal. If a string is not a

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Pille
Christopher Schultz wrote: > Philippe, > > Pille wrote: how can i set a property of a dyna form from within an action? >>> That's easy: just do the same thing you do in your SaveAction to get a >>> reference to the form bean. Then, instead of just calling accessors to >>> get the data our,

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, Pille wrote: >>> how can i set a property of a dyna form from within an action? >> >> That's easy: just do the same thing you do in your SaveAction to get a >> reference to the form bean. Then, instead of just calling accessors to >> get the

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Pille
le [mailto:[EMAIL PROTECTED] > Sent: Monday, December 18, 2006 5:48 AM > To: Struts Users Mailing List > Subject: Re: DynaValidatorForm - cannot find bean > > how can i access the getters and setters in of a DynaValidatorForm from > within an action method? >

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Pille
Christopher Schultz wrote: > Philippe, > > Pille wrote: >> how can i set a property of the form, that is used and needed in the jsp >> of the form after editing? > > I usually add that property to the form bean itself and then use a > hidden parameter. For instance, if I'm editing a database reco

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, Pille wrote: > how can i access the getters and setters in of a DynaValidatorForm from > within an action method? You can use them as before. > when i had a own form class i could do the following in a action method: > > productForm = (My

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, Pille wrote: > how can i set a property of the form, that is used and needed in the jsp > of the form after editing? I usually add that property to the form bean itself and then use a hidden parameter. For instance, if I'm editing a databas

RE: DynaValidatorForm - cannot find bean

2006-12-17 Thread mano dasanayake
/org/apache/struts/util/PropertyUtils.html#getSimpleProperty(java.lang.Objec t,%20java.lang.String) Regards, Mano -Original Message- From: Pille [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 5:48 AM To: Struts Users Mailing List Subject: Re: DynaValidatorForm - cannot find bean how can i

Re: DynaValidatorForm - cannot find bean

2006-12-17 Thread Pille
how can i access the getters and setters in of a DynaValidatorForm from within an action method? when i had a own form class i could do the following in a action method: productForm = (MyOwnForm)form; productForm.setComboArrayList(comboArrayListWithBeans); with a dynamic form i cannot cast anym

Re: DynaValidatorForm - cannot find bean

2006-12-17 Thread Pille
Christopher Schultz wrote: > Philippe, > > Pille wrote: >> but after submitting the form with wrong input and returning >> to the jsp-page i get the following exception: >> javax.servlet.jsp.JspException: Cannot find bean under name countries at >> org.apache.struts.taglib.html.OptionsTag.getIte

Re: DynaValidatorForm - cannot find bean

2006-12-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, Pille wrote: > but after submitting the form with wrong input and returning > to the jsp-page i get the following exception: > javax.servlet.jsp.JspException: Cannot find bean under name countries at > org.apache.struts.taglib.html.OptionsTa

RE: DynaValidatorForm help?

2006-11-21 Thread Mano Chinthaka Dasanayaka
Hi, Are you resetting the property correctly in your action class? Using, PropertyUtils.setSimpleProperty(form, "obj", List);? Regards, Mano -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 11:58 AM To: user@struts.apache.org Subject: DynaValidat

Re: DynaValidatorForm help?

2006-11-21 Thread Nuwan Chandrasoma
MAIL PROTECTED]> To: Sent: Tuesday, November 21, 2006 10:38 AM Subject: Re: DynaValidatorForm help? Hi friends i don't have idea about DTO can you give me some idea please ur's Mallik nuwan chandrasoma-2 wrote: Hi, The loop is wrong, your are overwriteing the same form

Re: DynaValidatorForm help?

2006-11-21 Thread Mallik
e the DTO and add create > a > list of those DTO's, and set it to the from or request from there you can > get the list and can easily iterate this list > > Regards, > > Nuwan. > > - Original Message - > From: "Mallik" <[EMAIL PROTECTED]> >

RE: DynaValidatorForm help?

2006-11-21 Thread Mano Chinthaka Dasanayaka
: Tuesday, November 21, 2006 12:51 PM To: user@struts.apache.org Subject: RE: DynaValidatorForm help? hi friend i have no idea about resetting this is my source code please help me in finding worng.. Action Class - public

Re: DynaValidatorForm help?

2006-11-21 Thread Nuwan Chandrasoma
Hi, Can i see the you jsp code, are you iterateing the list propertly Thanks, Nuwan - Original Message - From: "Mallik" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 21, 2006 6:28 AM Subject: DynaValidatorForm help? Hi friends first of all thanks for your great help situation

RE: DynaValidatorForm help?

2006-11-21 Thread Mallik
hi friend i have no idea about resetting this is my source code please help me in finding worng.. Action Class - public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServl

Re: DynaValidatorForm

2006-09-12 Thread David Durham
leo mj wrote: mallik, use java.lang.Integer for integer and java.util.GregorianCalendar for Time. Yeah, but you don't really want to do that, either. You're best bet is to use String types for form-bean values, and convert to a different type while handing off to a model layer. Reasoning

Re: DynaValidatorForm

2006-09-11 Thread leo mj
mallik, use java.lang.Integer for integer and java.util.GregorianCalendar for Time. Regards, Leo Mallik <[EMAIL PROTECTED]> wrote: Hi friends i am using DynaActionForm and client side validations using Validator fromework i can specify java.lang.String for type of form field in struts-config

Re: DynaValidatorForm

2006-04-25 Thread Niall Pemberton
On 4/25/06, Asad Habib <[EMAIL PROTECTED]> wrote: > Does DynaValidatorForm have to be explicitly instantiated in an action? No this is one of the things that Struts does for you. All you should need to do is define it, along with the properties you want in the struts-config.xml: http://struts.apa

Re: DynaValidatorForm and nested tags.

2005-12-21 Thread fea jabi
thanks, Laurie. Now I can think of an alternative way to do this. I filed an enhancement request in Bugzilla. From: Laurie Harper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: DynaValidatorForm and nested tags. Date: Tue

Re: DynaValidatorForm and nested tags.

2005-12-20 Thread Laurie Harper
an't we do this? From: Rick Reumann <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: DynaValidatorForm and nested tags. Date: Mon, 19 Dec 2005 20:25:54 -0500 On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote: > >

Re: DynaValidatorForm and nested tags.

2005-12-20 Thread fea jabi
]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: DynaValidatorForm and nested tags. Date: Mon, 19 Dec 2005 20:25:54 -0500 On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote: > > Thanks. I sure can see the difference. > > can we use a

Re: DynaValidatorForm and nested tags.

2005-12-19 Thread Rick Reumann
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote: > > Thanks. I sure can see the difference. > > can we use a DynaValidatorForm as an attribute in another > DynaValidatorForm? I'm guessing you could just simply nest DynaValidatorForms (but I'm sure you'll want to use 'Lazy' ones otherwise you'll

Re: DynaValidatorForm and nested tags.

2005-12-19 Thread fea jabi
Thanks. I sure can see the difference. can we use a DynaValidatorForm as an attribute in another DynaValidatorForm? Thanks. From: Rick Reumann <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: DynaValidatorForm and nested

Re: DynaValidatorForm and nested tags.

2005-12-19 Thread Rick Reumann
Slight correction to above (copy and past problems when trying to make it generic): On 12/19/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote: > > > > > > > > Also, when exactly do we have to use the

Re: DynaValidatorForm and nested tags.

2005-12-19 Thread Rick Reumann
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote: > > > > Also, when exactly do we have to use the nested tags? You don't have to use them, but they make things easier/cleaner when you need to display fields that are updatable that are nested. For example here are two ways.. one with JSTL and one

RE: DynaValidatorForm problem

2005-08-04 Thread Amol Yadwadkar
Hi List, I got my mistake it was the wrong package given for the Class DynaValidatorForm Amol -Original Message- From: Amol Yadwadkar [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 11:13 AM To: user@struts.apache.org Subject: DynaValidatorForm problem Hello List, I am usin

Re: DynaValidatorForm not validating ?

2005-05-12 Thread Dave Newton
Michael Klaene wrote: name="loginForm" input="login.page" scope="request"> Woudln't you need a validate="true" attribute? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DynaValidatorForm properties Initialisation

2005-04-13 Thread Franck
Sorry, classpath problem :-( Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent etre protegees par la loi. Ce message est etabli a l'intention exclusive de ses destin

Re: DynaValidatorForm and Checkbox

2005-03-30 Thread Wendy Smoak
From: "Scott Purcell" <[EMAIL PROTECTED]> > DynaValidatorForm theForm = (DynaValidatorForm)form; > String catalogID = theForm.getCatalogID(); > Boolean checkbox = theForm.getCovers(); > But it will not compile. How do I get the values from the form? I usually create my own physical bea

RE: DynaValidatorForm and Checkbox

2005-03-30 Thread Nidel, Mike
27;t work you should research further into how DynaForms operate. Sorry for the limited reply, but maybe it will help anyway. Mike > -Original Message- > From: Scott Purcell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 30, 2005 11:40 AM > To: Struts Users Mailing List >

RE: DynaValidatorForm and Checkbox

2005-03-30 Thread Scott Purcell
physical bean. Thanks, Scott -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 10:13 AM To: Struts Users Mailing List Subject: Re: DynaValidatorForm and Checkbox From: "Scott Purcell" <[EMAIL PROTECTED]> > I have a couple

Re: DynaValidatorForm and Checkbox

2005-03-30 Thread Wendy Smoak
From: "Scott Purcell" <[EMAIL PROTECTED]> > I have a couple of jsp pages where there is a single checkbox on the page. > But as a newbie, I am not sure what type in the creation to make it? A String? A Boolean? I usually use Boolean for checkboxes. (Read the docs about using the 'reset' method to

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-28 Thread Joe Germuska
At 11:31 AM + 11/24/04, Adam Hardy wrote: On 11/23/2004 02:20 PM Joe Germuska wrote: Your action isn't executed if validation fails. However, the validation is performed on a second request, so the object placed into the scope before the form was presented is no longer there. If your catego

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-24 Thread Adam Hardy
On 11/23/2004 02:20 PM Joe Germuska wrote: Your action isn't executed if validation fails. However, the validation is performed on a second request, so the object placed into the scope before the form was presented is no longer there. If your categories are really relatively static, consider ma

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Alexander Czernay
The problem is, that the given form actually edits the categories-tree and as it is presented to the user after editing it, it should be updated after the form is submitted. Alexander Joe Germuska wrote: Your action isn't executed if validation fails. However, the validation is performed on a

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Matt Bathje
Alexander Czernay wrote: I have a simple DynaValidatorForm that is called whtin an action that inserts so data into the request inside its execute method public ActionForward execute( ActionMapping mapping,

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Joe Germuska
Your action isn't executed if validation fails. However, the validation is performed on a second request, so the object placed into the scope before the form was presented is no longer there. If your categories are really relatively static, consider managing them in Application scope rather th

Re: DynaValidatorForm and multibox

2004-10-19 Thread Wendy Smoak
From: "Brian Kuhn" <[EMAIL PROTECTED]> > I'm using struts 1.1 > Is it possible to use a multibox with a DynaValidatorForm? Sure. I use a String[] property in the dynamic form, and it works fine. If you're having trouble with it, post the relevant parts of the config files and JSP and someone wil

RE: DynaValidatorForm Problem

2004-05-11 Thread Marco Mistroni
Hi, Wild guess (not so wild, It happened to me more than One time) The fact that you declare your form (ticketForm I suppose) thru Struts tag does not make it 'visible' to scriptlet code so, you would have do do <% DynaActionForm ticketForm = (DynaActionForm)request.getAttribute("

Re: DynaValidatorForm in struts

2004-05-10 Thread Niall Pemberton
I read the article but IMO the arguments he makes don't stand up - and I believe two of the six points are wrong. I've posted a reply to his blog going into detail. Niall On Tuesday, May 11, 2004 12:20 AM Eric Noel wrote.. > > i asked something like this before and matthias provided a useful > o

Re: DynaValidatorForm in struts

2004-05-10 Thread Eric Noel
On 5/8/2004 2:03 AM, Zhang, Larry (L.) wrote: When using DynaValidatorForm, you just put the fields in the struts configuration xml file, and you don't need a formbean to set all the fields manually, which in turn saves your developing time. I am asking in struts community, is there any reason/enc

Re: DynaValidatorForm in struts

2004-05-09 Thread Sven Kiesewetter
Zhang, Larry (L.) wrote: When using DynaValidatorForm, you just put the fields in the struts configuration xml file, and you don't need a formbean to set all the fields manually, which in turn saves your developing time. I am asking in struts community, is there any reason/encouragement for not us

Re: DynaValidatorForm help

2004-04-09 Thread Brad Balmer
Thanks for the responses. I was using the way that you showed. I figured out that my problem was with my struts-config.xml where I should have been using:org.apache.struts.validator.DynaValidatorForm instead of org.apache.struts.action.DynaValidatorForm. Adam Hardy wrote: DynaValidatorForm d

Re: DynaValidatorForm help

2004-04-09 Thread Adam Hardy
DynaValidatorForm dynaForm = (DynaValidatorForm) form; String value = (String) dynaForm.get("myFieldName"); On 04/09/2004 02:52 PM Brad Balmer wrote: Using the DynaValidatorForm, how do you get the form variable data out of the form inside the action? All examples I've seen are purely the setu

Re: DynaValidatorForm help

2004-04-09 Thread Niall Pemberton
Cast the ActionForm to a DynaBean and then use get(String property) Niall - Original Message - From: "Brad Balmer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 1:52 PM Subject: DynaValidatorForm help > Using the DynaValidatorForm, how do you get the form va