Re: DynaValidatorForm and BigDecimal problem

2014-06-05 Thread abhijeettomar
message in context: http://struts.1045723.n5.nabble.com/DynaValidatorForm-and-BigDecimal-problem-tp3458219p5716159.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Christopher Schultz
t;> at or higher than the currently-being-submitted page > > I'm not aware of any page number/flow functionality in S1, but I > stopped using it around 1.2.9--is flow functionality something from > 1.3, or did I just miss it altogether? The validation framework understands the &quo

Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Dave Newton
On Friday, June 17, 2011, Christopher Schultz wrote: > I can't believe I've been working with Struts for nearly 10 years and > I'm still using Struts 1. Fixed. > The problem is that if we check the box and submit to A2 (then show P2), > then go back (either browser-BACK or using our "previous" bu

[s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I can't believe I've been working with Struts for nearly 10 years and I'm only now attempting to use a multi-page flow with a form bean in the session. Of course, I'm having difficulty with checkboxes. Our (simplified) flow looks something like

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

2009-02-24 Thread sledge
blic ActionForward execute(ActionMapping mapping, ActionForm form, > HttpServletRequest request, HttpServletResponse > response) > throws Exception { > > // form arrives as null > DynaValidatorForm myForm = (Dyn

DynaValidatorForm arrives as null (that of passed by ActionForm) in execute

2009-02-23 Thread sledge
ponse response) throws Exception { // form arrives as null DynaValidatorForm myForm = (DynaValidatorForm) form; } struts-c

DynaValidatorForm is null (from ActionForm in execute)

2009-02-20 Thread sledge
arrives as null DynaValidatorForm myForm = (DynaValidatorForm) form; } struts-config

Re: DynaValidatorform -->

2007-09-11 Thread Paul Benedict
--- john lee <[EMAIL PROTECTED]> wrote: > > > i have an DynaValidatorForm as following: > > > > inside struts-config.xml > > > > > > > type"java.lang.String[] "/> > > > > > > >type="PartUpda

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 &g

DynaValidatorform -->

2007-09-10 Thread john lee
i have an DynaValidatorForm as following: inside struts-config.xml inside validation.xml inside test.jsp But, the execution give me the following error message after i leave the Qty

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread john lee
> > org.apache.struts.action.DynaValidatorform> > > > > > > > > > > > > > > But, the execution give me the error message for null point exception. > > All the examples i could find is demonstrate how to use > > DynaValidatorform/Stri

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread Paul Benedict
g.apache.struts.action.DynaValidatorform> > > > > > > > > > > > > > > But, the execution give me the error message for null point exception. > > All the examples i could find is demonstrate how to use > > DynaValidatorform/String, for my ca

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread john lee
> > inside struts-config.xml > > > org.apache.struts.action.DynaValidatorform> > > > > > > > But, the execution give me the error message for null point exception. > All the examples i could find is demonstrate how to use > DynaValidatorform/String, for my cas

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-10 Thread john lee
, the execution give me the error message for null point exception. > All the examples i could find is demonstrate how to use > DynaValidatorform/String, for my case, i want to use > DynaValidatorform/String[], how can i do it? > > tks in advance > > john > > > > > > &

Re: pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-09 Thread Paul Benedict
t; > inside struts-config.xml > >org.apache.struts.action.DynaValidatorform> > > > > inside validation.xml > > > > > > > > But, the execution give me the error message for null point exception. > All the examples i could find is demonstrate how

pls help: struts 1.x /dynaValidatorForm/String[] type

2007-09-09 Thread john lee
demonstrate how to use DynaValidatorform/String, for my case, i want to use DynaValidatorform/String[], how can i do it? tks in advance john - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for to

Validation of DynaValidatorForm with String array

2007-07-17 Thread Rahul Joshi
Hi, In my struts application I am using a DynaValidatorForm which contains a String[]. I am doing "required", "integer" and "intRange" validation on the form. The problem I am facing is that if I declare the property in struts-config.xml as a string array with given

Re: Extending DynaValidatorForm

2007-06-11 Thread David Durham, Jr.
On 6/11/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote: My code is as following... struts-config.xml Is this something where just adding "initial" will work for you? This will affect the behavior of an html-reset control, because it determines th

RE: Extending DynaValidatorForm

2007-06-10 Thread Ambaris Mohanty
My code is as following... struts-config.xml -Original Message- From: David Durham, Jr. [mailto:[EMAIL PROTECTED] Sent: Saturday, June 09, 2007 2:46 AM To: Struts Users Mailing List Subject: Re: Extending DynaValidatorForm On 6/8/07, David

RE: Extending DynaValidatorForm

2007-06-10 Thread Ambaris Mohanty
Thanks David, But I need sample code. Can u provide it? I got your logic but finding it difficult to implement. The main problem is how to get the property name at runtime. I have many forms that extend the DynaValidatorForm. Thank you, AM -Original Message- From: David Durham, Jr

Re: Extending DynaValidatorForm

2007-06-08 Thread David Durham, Jr.
On 6/8/07, David Durham, Jr. <[EMAIL PROTECTED]> wrote: On 6/8/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote: > Please someone send me the sample code for extending DynaValidatorForm and > implementing the reset method. I have no idea on how to do it. Please help. > I

Re: Extending DynaValidatorForm

2007-06-08 Thread David Durham, Jr.
On 6/8/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote: Please someone send me the sample code for extending DynaValidatorForm and implementing the reset method. I have no idea on how to do it. Please help. I'm using struts 1.2.9. Thank you, HTML has the concept of a reset butt

RE: Extending DynaValidatorForm

2007-06-08 Thread Ambaris Mohanty
Please someone send me the sample code for extending DynaValidatorForm and implementing the reset method. I have no idea on how to do it. Please help. I'm using struts 1.2.9. Thank you, AM -Original Message- From: Ambaris Mohanty [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007

Extending DynaValidatorForm

2007-06-08 Thread Ambaris Mohanty
Can anyone send me sample code for extending DynaValidatorForm and implementing reset() method that will clear the text fields on reset. Thank you, AM

Re: Struts 1.3.x : Dynavalidatorform : initialize & prepopulate ArralyList with data after submisstion

2007-06-06 Thread Niall Pemberton
TED]> wrote: Hi, Situation : One DynaValidatorForm has a property of type "java.util.ArrayList" and size is not known in advance The Arraylist consists of elements of type "User" which is a si

Re: cannot reset dynavalidatorform in struts 1.2.9

2007-06-06 Thread Vincent Lin
t values? On 6/6/07, Ambaris Mohanty <[EMAIL PROTECTED]> wrote: Hi, I'm using a simple DynaValidatorForm for my login form. The problem is. the reset button doesn't reset the fields to blank state which I want. Can anybody help? AM

cannot reset dynavalidatorform in struts 1.2.9

2007-06-06 Thread Ambaris Mohanty
Hi, I'm using a simple DynaValidatorForm for my login form. The problem is. the reset button doesn't reset the fields to blank state which I want. Can anybody help? AM

Struts 1.3.x : Dynavalidatorform : initialize & prepopulate ArralyList with data after submisstion

2007-06-06 Thread Raghupathy, Gurumoorthy
Hi, Situation : One DynaValidatorForm has a property of type "java.util.ArrayList" and size is not known in advance The Arraylist consists of elements of type "User" which is a simple Javabea

Re: DynaValidatorForm with java.util.Date

2007-03-13 Thread Gareth Evans
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? Simply add this code to my Action or do I have to add this somewhere else? I've figured out what my problem was, but now sth

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
your Action classes. Hubert On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: And the 3rd mail. Is it possible to use an object that's different from java.lang.* as type for the dynavalidatorform? I think that's what causing the issue here. If it's not possi

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
And the 3rd mail. Is it possible to use an object that's different from java.lang.* as type for the dynavalidatorform? I think that's what causing the issue here. If it's not possible, then I'm in deep :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

RE: DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
uot;,new Date()); So the object I'm assigning to that field is a Date-object, but for some reason it is converted to a String. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: maandag 12 maart 2007 9:40 To: user@struts.apache.org Subject: DynaValidatorForm wit

DynaValidatorForm with java.util.Date

2007-03-12 Thread bjorn.de.bakker
This is filled by the action, with the correct date. When I look at the source of the page, the date is actually filled in, so that's not the problem. I assume there's a problem with assigning the java.util.Date-type to a field in a DynaValidatorForm, but I'm not sure 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

DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Gundersen, Richard
Hi Has anyone had problems with BigDecimal and DynaValidatorForms? I've got a form with two fields (advisorFee and grossIncome) defined as java.lang.Double. I want to change them to java.math.BigDecimal because they are money fields. If I change advisorFee to BigDecimal, the validation fails wh

RE: Using DynaValidatorForm

2007-01-18 Thread bjorn.de.bakker
Sorry, forgot to supply that. I'm using Struts 1.3.5 and commons-validator 1.1.3 -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: donderdag 18 januari 2007 16:46 To: Struts Users Mailing List Subject: Re: Using DynaValidatorForm Hi, what is the struts ve

Re: Using DynaValidatorForm

2007-01-18 Thread Nuwan Chandrasoma
tor method. i hope this would help you. Thanks, Nuwan. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, January 18, 2007 9:33 AM Subject: Using DynaValidatorForm Is this deprecated ? The reason why I'm asking is that I want to use it in my application

Re: Using DynaValidatorForm

2007-01-18 Thread Nuwan Chandrasoma
Hi, what is the struts version you are using? Thanks, Nuwan - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, January 18, 2007 9:33 AM Subject: Using DynaValidatorForm Is this deprecated ? The reason why I'm asking is that I want to use it in my

Using DynaValidatorForm

2007-01-18 Thread bjorn.de.bakker
Is this deprecated ? The reason why I'm asking is that I want to use it in my application, but I can't seem to find a lot of articles on it. The guide on the Struts website is well written, but beside that, not a lot of people have written tutorials on it. I have some problems with the Action

For Viewing data DynaValidatorForm not working, why?

2006-12-19 Thread Mallik
HI Friends i have a problem that for viewing data DynaValidatorForm is not working well. if i create normal formbean it is displaying all the data well but when i use DynaValidatorForm, the last record only displaying repeatedly (exactly oracle count(*) returned value times ) why this is ? i

Re: initialize a DynaValidatorForm property

2006-12-19 Thread Laurie Harper
Pille wrote: And in the action mapping specify the name of the Form Bean that you are about to use. In this case the form bean that contains the List you'r going to initiate.. i tried all of this. when i spcified the name of DynaValidatorForm in the prepare-mapping i got an exception. b

Re: initialize a DynaValidatorForm property

2006-12-18 Thread Pille
he List you'r going > to initiate.. i tried all of this. when i spcified the name of DynaValidatorForm in the prepare-mapping i got an exception. but it worked with DynActionForm. why? but i solved it right now. i just implemented my own Form class as extension of ValidatorForm. &g

RE: initialize a DynaValidatorForm property

2006-12-18 Thread mano dasanayake
ssage- From: Pille [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 5:12 AM To: user@struts.apache.org Subject: initialize a DynaValidatorForm property hi, how can i initialize a property of type ArrayList in a DynaValidatorForm? i saw that i can do some simple initialization with the in

initialize a DynaValidatorForm property

2006-12-18 Thread Pille
hi, how can i initialize a property of type ArrayList in a DynaValidatorForm? i saw that i can do some simple initialization with the initial attribute in the form-peoperty tag in struts-config. at the moment i do some initialization in a prepare action that sets the attributes some combo boxes

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Pille
ters >> and setters of a DynaActionForm. the form tag in struts-config.xml was a >> type of my own DynaActionForm extension. Is it ok to mix it like this or >> do i either have to implement every property in a own DynaActionForm >> class or do i have to declare every

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Christopher Schultz
o implement every property in a own DynaActionForm > class or do i have to declare everything in struts-config? I would recommend that, if you are going to use DynaValidatorForm, you just use it as-is instead of subclassing it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6

Re: DynaValidatorForm - cannot find bean

2006-12-18 Thread Pille
mano dasanayake wrote: > Hi, > Use PropertyUtils.setSimpleProperty(yourForm,"proptyName",object); > > And > > PropertyUtils.getsimplePropert(yourform,"proprtyname") --> cast it to the > required type.. ok, but i have a prepare action for the DynaVa

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: > &

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

Re: DynaValidatorForm - cannot find bean

2006-12-17 Thread Pille
form after editing? how can i set a property of a dyna form from within an action? how do i make sure that this property will be still set after submission and redirecting over 2 sites? the problem is that i have 4 dynamic combo boxes and i always need to iterate over the request parameters with a R

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

DynaValidatorForm - cannot find bean

2006-12-17 Thread Pille
hi, i have a DynaValidatorForm and a jsp-page to display the form data. in the jsp page i´m using some combo boxes too. i have one action class for all actions. this action class does all the actions for this single jsp page and it extends MappingDispatchAction class. to initialize my combo boxes

RE: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Edward Song
Wendy you're right! Thanks. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 2:51 PM To: Struts Users Mailing List Subject: Re: Retrieving DynaValidatorForm values with JSTL On 11/30/06, Edward Song <[EMAIL PROTECTED]> wrot

Re: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Wendy Smoak
On 11/30/06, Edward Song <[EMAIL PROTECTED]> wrote: In JSP pages using the Struts Taglib, attributes of DynaActionForm objects can be referenced just like ordinary ActionForm objects. Wherever a Struts tag refers to a "property", the tags will automatically use the DynaActionForm properties just

RE: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Edward Song
those of a conventional JavaBean. So the code becomes Thanks again. Ed -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 2:35 PM To: Struts Users Mailing List Subject: Re: Retrieving DynaValidatorForm values with JSTL On 11/30/06, Edward So

Re: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Wendy Smoak
On 11/30/06, Edward Song <[EMAIL PROTECTED]> wrote: I have a form stored within the session and am trying to dump some of the Form values in the presentation using JSTL. Specifically something like Country : See 4.3.1 on http://struts.apache.org/1.x/userGuide/building_controller.html -- Wen

Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Edward Song
Hi all, I have a form stored within the session and am trying to dump some of the Form values in the presentation using JSTL. Specifically something like Country : The form's name is SubscriptionProcessForm and the value to be retrieved from the form is country. Obviously I'm looking to

Re: File upload using DynaActionForm/DynaValidatorForm

2006-11-28 Thread Chris Searle
to the user has this html: So - the action is correct, the method is post and the enctype is multipart/form-data If I understand the error log correctly - it is falling over when trying to create an instance of the DynaValidatorForm to use for processing the request - which makes me

RE: DynaValidatorForm help?

2006-11-21 Thread Mano Chinthaka Dasanayaka
rg Subject: DynaValidatorForm help? Hi friends first of all thanks for your great help situation is: i have to setup some details and display those details for the setup service, i use DynaValidatorForm. it is working well for validations also. i want to use the same DyanActionForm for view also but probl

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

RE: DynaValidatorForm help?

2006-11-21 Thread Mallik
, HttpServletResponse response) throws Exception { DynaValidatorForm block = null; try // try start { ds = getDataSource(request); conn = ds.getConnection(); stmt = conn.createStatement

Re: how to use SET method of DynaValidatorForm?

2006-10-25 Thread Laurie Harper
DynaValidatorForm like get(""); i am using like this but it is not working.let me know where i did mistake... this is my execute method of BlocksSetup action (i want to show all the blocks existed,and give text boxes to

how to use SET method of DynaValidatorForm?

2006-10-25 Thread Mallik
Hi friends my problem is : how to use set method of DynaValidatorForm like get(""); i am using like this but it is not working.let me know where i did mistake... this is my execute method of BlocksSetup action (i want to show all the blocks existed,and give text boxes to

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
struts-config.xml like type="org.apache.struts.validator.DynaValidatorForm"> but how to specify for numbers and time( time should be 24 hours format) please give me any idea or send any link on this topic urs Mallik -- View this message in context: http://www.nabble.com/DynaVali

DynaValidatorForm

2006-09-11 Thread Mallik
send any link on this topic urs Mallik -- View this message in context: http://www.nabble.com/DynaValidatorForm-tf2251930.html#a6245318 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Field check using DynaValidatorForm

2006-09-07 Thread David Friedman
>From the note about the MalFormURL Exception I would initially guess you started the header DOCTYPE in the file incorrectly. You gave a 6 line entry from your validation.xml file split like so: http://jakarta.apache.org/ commons/dtds/validator_1_0.dtd"> In a DOCTYPE you should NEVER break

RE: Field check using DynaValidatorForm

2006-09-07 Thread leo mj
"Samere, Adam J" <[EMAIL PROTECTED]> wrote: You have validate="false" in your action mapping. Change that to true. Adam -Original Message- From: leo mj [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 6:59 AM To: user@struts.apache.org Subject:

RE: Field check using DynaValidatorForm

2006-09-07 Thread Samere, Adam J
You have validate="false" in your action mapping. Change that to true. Adam -Original Message- From: leo mj [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 6:59 AM To: user@struts.apache.org Subject: Field check using DynaValidatorForm hi all, I want to

Field check using DynaValidatorForm

2006-09-07 Thread leo mj
apping; import org.apache.struts.validator.DynaValidatorForm; public class LoginAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForward forward=new ActionForward()

RE: Field check using DynaValidatorForm

2006-09-07 Thread RoseIndia.net Help
@struts.apache.org Subject: Field check using DynaValidatorForm hi all, I want to do Dynamic field check using validator framework. I have done the following steps: 1.Add validator plugin in struts-config.xml 2.I have used index.jsp as my LOGIN page. With the following code: <%@ taglib

Field check using DynaValidatorForm

2006-09-07 Thread leo mj
che.struts.action.ActionMapping; import org.apache.struts.validator.DynaValidatorForm; public class LoginAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForwa

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.x

DynaValidatorForm

2006-04-25 Thread Asad Habib
Does DynaValidatorForm have to be explicitly instantiated in an action? Thanks. - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Looking for a tutorial or complete example of using DynaValidatorForm

2006-04-09 Thread pantichd
Laurie, Thanks for getting back to me. I've been able to get a little further. I've gotten the jsp to come up. When I click the submit button with nothing in either input field it stops on a breakpoint in the validate method of the DynaValidatorForm class. Just in case you don'

Re: Looking for a tutorial or complete example of using DynaValidatorForm

2006-04-09 Thread Laurie Harper
Struts 1.2.7 and would like to take advantage of the DynaValidatorForm. I've found several articles on it and many examples. However, I haven't found one that includes a complete example app and I am having trouble getting it to work properly with the pieces I have. Basically, what I w

Looking for a tutorial or complete example of using DynaValidatorForm

2006-04-08 Thread pantichd
Hello, I have been using Struts for awhile but it was a very old (1.02) version. Just finished upgrading my apps to Struts 1.2.7 and would like to take advantage of the DynaValidatorForm. I've found several articles on it and many examples. However, I haven't found one that includes

Re: Validation with DynaValidatorForm not working - help

2006-01-13 Thread Mahadevan Venkataraman
I was able to solve the problem. The problem was I was calling the URL for the form directly from the browser. Fixed the problem.. Thanks Maha --- Mahadevan Venkataraman <[EMAIL PROTECTED]> wrote: > > > Here is the stack trace that I got from the > catalina.log > > Maha > > > > Jan 11, 20

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
ore info on the problem that I am having. > > I used the DynaValidatorForm in the form beans in > order not to explicitly code the form beans. Also, I > tried to do both client-side(javascript) and > server-side validations. The client side validation > worked. The javascr

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Mahadevan Venkataraman
Here is the stack trace that I got from the catalina.log Maha Jan 11, 2006 3:05:52 PM org.apache.struts.validator.DynaValidatorForm validate SEVERE: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.vali

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Mahadevan Venkataraman
Thanks for the replies. Here is more info on the problem that I am having. I used the DynaValidatorForm in the form beans in order not to explicitly code the form beans. Also, I tried to do both client-side(javascript) and server-side validations. The client side validation worked. The

Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
Yes mr.vishal in that case we should validate() method. again i have a doubt, for reducing the class files only we r using DynaValidatorForm, but in this suituation use of DynaValidatorForm fails know... there may be a solution for this. mr.vishal ill search and let u know the solution for that

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
I guess that would work if you have validations corresponding to a form i.eyou are extending DynaValidatorForm. If you need to extend DynaValidatorActionForm, i.e give validations corresponding to a action (as single form can be reused in different actions and not all fields need to be validated

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
]>: > > > > > Hi, > > > > > > Simply having your dyna form bean of the type Dyna Validator form will > > not > > > work. You have to declare your form bean in the Struts Config as type > > any > > > local form bean you

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
ype Dyna Validator form will > not > > work. You have to declare your form bean in the Struts Config as type > any > > local form bean you have. ( ) > > > > Then your ABCForm will extend DynaValidatorForm or > DynaValidatorActionForm > > depending on yo

  1   2   3   >