Re: Validation on String[]

2006-09-21 Thread Mark Shifman
", list); I'm not sure how to validate a simple array of strings (eg java.lang.String[]) as the property attribute is required by the validator. From: Sahil Gupta [mailto:[EMAIL PROTECTED] Sent: Thu 21/09/2006 8:40 PM To: 'Struts Users Mailing Lis

RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi, Thanks a lot Can I do put the validation with the help of validation.xml to a String[] Regards, Sahil Gupta -Original Message- From: Strachan, Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 6:11 PM To: Struts Users Mailing List Subject: RE: Validation on

RE: Validation on String[]

2006-09-21 Thread Strachan, Paul
a simple array of strings (eg java.lang.String[]) as the property attribute is required by the validator. From: Sahil Gupta [mailto:[EMAIL PROTECTED] Sent: Thu 21/09/2006 8:40 PM To: 'Struts Users Mailing List' Subject: RE: Validation on String[] Hi,

Re: Validation on String[]

2006-09-21 Thread Li
essage- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:57 PM To: Struts Users Mailing List Subject: Re: Validation on String[] hi, there is no such type : java.lang.String[], try to use List or ArrayList On 9/21/06, Sahil Gupta <[EMAIL PROTECTED]> wrote: > > Hi,

RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi, How can we use List or ArrayList in DynaValidator Forms? Regards, Sahil Gupta -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:57 PM To: Struts Users Mailing List Subject: Re: Validation on String[] hi, there is no such type

Re: Validation on String[]

2006-09-21 Thread Li
hi, there is no such type : java.lang.String[], try to use List or ArrayList On 9/21/06, Sahil Gupta <[EMAIL PROTECTED]> wrote: Hi, I have used a dyna form in which I have a property which is a multi-select pick list defined as form-property name="location" type="java.lang.String[] Now I wan

Re: validation - form set

2006-09-19 Thread Tom Jerry
Thanks :) Got it done :) On 9/19/06, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote: Hi, the problem is the sequence of tags you have to put before Sorry for my English. 2006/9/19, Tom Jerry <[EMAIL PROTECTED]>: > > why do I get this error ? > > SEVERE: Parse Error at line 87 colum

Re: validation - form set

2006-09-19 Thread Juanjo Cuadrado
Hi, the problem is the sequence of tags you have to put before Sorry for my English. 2006/9/19, Tom Jerry <[EMAIL PROTECTED]>: why do I get this error ? SEVERE: Parse Error at line 87 column 19: The content of element type "form-validation" must match "(global*,formset*)". org.x

Re: validation - form set

2006-09-18 Thread Raja Nagendra Kumar
As per the dtd, global attributes should come first and formset later.. Move the global tags before formset and this should fix it. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com - Original Message - From: "Tom Jerry" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: T

Re: Validation framework problem?

2006-09-18 Thread Laurie Harper
Mallik wrote: Hi friends i have stuckup in validation framework because my form will get fields dynamically on user request and i cannot predect how my fields it will have when posting the form i am creating Dynamic form fields using javascript like txt = document.createElement('input'); tx

RE: validation

2006-09-18 Thread Givler, Eric
There's an example of doing this inside the Struts Live Sample Chapters (p 144). You can register on TheServerSide, and download it here: http://www.theserverside.com/tt/books/sourcebeat/JakartaStrutsLive/index.tss The section is titled: Extending Validate and Custom Validation in the Validate()

RE: validation

2006-09-18 Thread Strachan, Paul
g, request); // returns a new ActionMessages object saveErrors(request, errors); ... in above case the 2nd saveErrors() call would replace the initial messages From: Tom Jerry [mailto:[EMAIL PROTECTED] Sent: Mon 18/09/2006 8:26 PM To: Struts Users Mailing List S

Re: validation

2006-09-18 Thread Tom Jerry
Thank you so much. It worked. btw, what did u mean "be careful to perserve any messages" ? On 9/18/06, Ted Husted <[EMAIL PROTECTED]> wrote: Yes, but you have to call the super class's validate to fire the validation framework, and be careful to perserve any messages. -- HTH, Ted. * http://www

Re: validation

2006-09-18 Thread Ted Husted
Yes, but you have to call the super class's validate to fire the validation framework, and be careful to perserve any messages. -- HTH, Ted. * http://www.husted.com/struts/ On 9/18/06, Tom Jerry <[EMAIL PROTECTED]> wrote: is it NOT possible to use both validation.xml and ActionErrors validate (

Re: Validation framework for Dynamically added HTML elements?

2006-09-14 Thread Laurie Harper
You can achieve what you want more simply; no need to start using Ajax just for expanding an input form :-) What you need to do is to generate additional rows that use the correct naming conventions for the parameter names. Start by getting the form working for some fixed number of input rows,

Re: Validation framework +dropdowns

2006-09-14 Thread Christopher Goldman
On Thu, 2006-09-14 at 16:13 +0530, Vaneet Sharma wrote: > Hii Frns > > I have two drop downs in my jsp page, > > I want to validate second drop down only when the value of selected item > of first drop down is 2. > Can anybody tell me how to do this using validation framework. Check this out

RE: Validation framework for Dynamically added HTML elements?

2006-09-14 Thread Mallik
Hi friend, i want how to create array of elements please help me urs Mallik Patil, Sheetal wrote: > > U can create array and create field as per reqiuirment,but this has > limit and here problem is for "arrayindexoutofboundexception" after > limit exceeds. > Elsewise u can use ajax, put ur for

RE: Validation framework for Dynamically added HTML elements?

2006-09-13 Thread Patil, Sheetal
U can create array and create field as per reqiuirment,but this has limit and here problem is for "arrayindexoutofboundexception" after limit exceeds. Elsewise u can use ajax, put ur form in session and send requeset to an action which will increase the size of array and again put into the session.

RE: Validation and Form Collections

2006-09-12 Thread Raghuveer
put the actionform scope in session in your mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:44 PM To: user@struts.apache.org Subject: Validation and Form Collections Hello Everyone, I have a question regarding validation. I have JSP that uses the Html:Options tag to populate a DDLB

Re: Validation and Form Collections

2006-09-12 Thread Laurie Harper
John De Lello wrote: I have JSP that uses the Html:Options tag to populate a DDLB. The action Populate a what? :-) class creates the collection and puts it in the Form. All works fine until the form validation fails. When I come back from the form validation, I am getting a "Bean define canno

RE: validation in actionform

2006-09-06 Thread Rokariya, Raman
Perform following steps: 1. in Custom-forms.xml, put entries for all JSP fields with validators like maxlength,required,excludeKnownBad etc. 2. in Struts Action-Mapping put validate=true. 3. Use where formName must be same as in actionMapping and in Custom-Forms.xml Hope this helps /Raman --

Re: validation framework problem?

2006-09-05 Thread Laurie Harper
Everything looks OK so far, based on a quick scan through. What does the rest of your login.jsp look like? In particular, what does your html:form tag look like and where is the html:javascript tag? You specified staticJavascript="false", so where are you importing the static Javascript from?

RE: validation framework problem?

2006-09-05 Thread RoseIndia.net Help
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 4:53 PM To: user@struts.apache.org Subject: Re: validation framework problem? Hi friends -- this is my Action Login.java package com.pack1; import org.apache.struts.action.*; import javax.servlet.http

Re: validation framework problem?

2006-09-05 Thread Mallik
Hi friends -- this is my Action Login.java package com.pack1; import org.apache.struts.action.*; import javax.servlet.http.*; public class Login extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest re

Re: validation framework problem?

2006-09-05 Thread Jorge Martín Cuervo
Hi i used validator and i got problems with validWhen, i wrote validWhen with caps and until i change to validwhen it didn't work properly. Please send us the struts-config.xml or the you use, maybe the problem is there. El mar, 05 de 09 de 2006 a las 13:05, Mallik escribió: > HI Friends > i

RE: Validation in Struts DisptachAction

2006-08-24 Thread Sherwood, Reg
Hi Vaneet I'm no expert on this to be sure; but I ran into a similiar issue. What I did was provided the check for the Read only mode in the forms validate method; if read only mode the validate method returned null; otherwise it invoked the super.validate method which performs the normal val

RE: Validation in Struts DisptachAction

2006-08-24 Thread Saeed, Rada
Sharma, If insert, update and read modes, are represented by 3 different submits that trigger the actions, make them 3 different action mappings, then put validate="false" in the read action mapping, and true in the rest. -Original Message- From: Vaneet S

Re: Validation

2006-08-21 Thread Rimzim Sinha
Use this And add to message.properties #formname.employerIdentificationNumber.required={0} - Please enter. Employer ID Number is required. Chetan Pandey <[EMAIL PROTECTED]> wrote: I have a field in my for

Re: Validation message Help

2006-08-10 Thread Puneet Lakhina
On 8/10/06, Krishna, Hari <[EMAIL PROTECTED] > wrote: Hi I have a registration page where i have a list of text boxes (all are mandatory).Is it possible to show one single error message for all the fields while highlighting all of them in RED color? For highlighting the the textboxes with red

RE: validation of two form properties

2006-08-10 Thread Givler, Eric
his is off base, then I'll assume someone else will chime in. -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 8:57 AM To: user@struts.apache.org Subject: RE: validation of two form properties can someone help me wih this please? Thanks.

RE: Validation message Help

2006-08-10 Thread kalpesh modi
As Tejas mentioned, you can use the tag to apply the style to the text boxes. If the error message for that particular field is present, it will apply the style to the text field. As far as displaying a single error message, you can again use on the top of the JSP instead of . Inside the

RE: Validation message Help

2006-08-10 Thread Vishal Seth
Mailing List Subject: RE: Validation message Help How to filter out and where to do it?Do i need to customize validation.xml? -Original Message- From: Vishal Seth [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 12:34 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE

RE: Validation message Help

2006-08-10 Thread Krishna, Hari
How to filter out and where to do it?Do i need to customize validation.xml? -Original Message- From: Vishal Seth [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 12:34 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Validation message Help You can try filtering

RE: Validation message Help

2006-08-10 Thread Vishal Seth
] Sent: Thursday, August 10, 2006 12:26 PM To: 'Struts Users Mailing List' Subject: RE: Validation message Help Hi Possible solution: Write tags to check if the error message is set in the request and correspondingly apply the style on the text boxes to render them in RED color and als

RE: Validation message Help

2006-08-09 Thread Tejas Bavishi
Hi Possible solution: Write tags to check if the error message is set in the request and correspondingly apply the style on the text boxes to render them in RED color and also show the same error message. Thanks & regards Tejas -Original Message- From: Krishna, Hari [mailto:[EMAIL PROTEC

RE: validation of two form properties

2006-08-09 Thread fea jabi
can someone help me wih this please? Thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: validation of two form properties Date: Tue, 08 Aug 2006 15:50:58 -0400 have form properties a and b have to validate that property b is

RE: Validation problems: again...

2006-07-04 Thread David Friedman
) Regards, David -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 1:06 PM To: Struts Users Mailing List Subject: Re: Validation problems: again... yes both of em, I've post a pice of the config file ;) yes either, both has valid

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
e- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 12:34 PM To: Struts Users Mailing List Subject: Re: Validation problems: again... Hum, how could the one of them being validated them? If both extend ActionForm? I gave up from validation plugin, I'm writing my

RE: Validation problems: again...

2006-07-04 Thread David Friedman
your log files that might shed some light on this? Regards, David -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 12:34 PM To: Struts Users Mailing List Subject: Re: Validation problems: again... Hum, how could the one of them being val

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
Hum, how could the one of them being validated them? If both extend ActionForm? I gave up from validation plugin, I'm writing my own validate method, isn't validate called even from ActionForm subclasses? Regards On 7/4/06, Paul Benedict <[EMAIL PROTECTED]> wrote: You write: >>Can someone expl

Re: Validation problems: again...

2006-07-04 Thread Paul Benedict
You write: >>Can someone explain me this? Both form extend ActionForm and both actions >>extend a common action. Vinicius, I think you need to refer to my previous email: ActionForm does not validate. You need to extend from ValidatorActionForm or ValidatorForm. The first valdiates based on

RE: Validation does not verify the hidden controls?

2006-06-29 Thread José María Tristán
27; Asunto: RE: Validation does not verify the hidden controls? Do you know if the hidden field values were sent by the browser? That would be a place to start. Struts doesn't distinguish between an html:hidden and a html:text field on the server side. -Richard -Original Message- F

Re: Validation does not verify the hidden controls?

2006-06-29 Thread Niall Pemberton
On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hello: I have five tabs. When i click into a tab one css hide and other css show. If anything control of a form is into a css hide when I launch the validation is not validate. Why? Could you say what version of Commons Validato

Re: Validation does not verify the hidden controls?

2006-06-29 Thread Monkeyden
Is the content of each tab within a tag, and you're just hiding and showing the div? Do they share the same form tag? Are all of them nested within it? On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hello: I have five tabs. When i click into a tab one css hide and other cs

RE: Validation does not verify the hidden controls?

2006-06-29 Thread Yee, Richard K CTR DMDC
Do you know if the hidden field values were sent by the browser? That would be a place to start. Struts doesn't distinguish between an html:hidden and a html:text field on the server side. -Richard -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: Thursday, Jun

Re: Validation errors

2006-06-26 Thread Niall Pemberton
You can use the "property" attribute to filter a specific properties messages: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5 Niall On 6/26/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hello there! Just as I said in my last message, it's been a while since my

Re: Validation a specific element in an String []

2006-06-22 Thread lingan
Hi , Thanks for the reply. You did understand my question. Any way i have written a custom validator . Thanks. -- View this message in context: http://www.nabble.com/Validation-a-specific-element-in-an-Stringt1824259.html#a4996461 Sent from the Struts - User forum at Nabble.com. ---

Re: Validation a specific element in an String []

2006-06-22 Thread The Jasper
Hi, so you have 2 textboxes and one of them is required, which is what you want to validate. The problem is that they have the same name, I assume. The obvious solution in that case would be to give them different names, but I'm not sure I understand the question. mvg, Jasper On 6/21/06, lingan

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread antony.paul
>this to work you need to define the property in your ActionForm as a >String, not a Double. Hi , I have treid this but couldnt find any luck, now instead of a defaut value "0.0" in the case of 'Double' the invalid 'char/string' gets stored in the database. As if the validtion is not work

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread The Jasper
always pass the double validation (but fail integer validation :-) For this to work you need to define the property in your ActionForm as a String, not a Double. oops, missed that :} mvg, Jasper - To unsubscribe, e-mail: [EMAI

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread Niall Pemberton
On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote: Hi Sorry for that incomplete mail. I am not getting any excetption and that particular field is accepting everthing like characters and getting saved in the database as '0', I guess thats the default value for that field because I have defin

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread antony.paul
Hi Thank you Jasper I will try for any updation. Regards, Antony -- View this message in context: http://www.nabble.com/Validation-not-working-for-%27double%27-with-Struts-1.2-t1754076.html#a4771298 Sent from the Struts - User forum at Nabble.com. --

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread The Jasper
hi, It looks fine to me. It sort of sounds like validation is not happening at all. Maybe there is a problem in your form or jsp. Or you coulld try updating to the latest version of Validator/struts if yuo haven't allready. mvg, Jasper On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote: Hi

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread antony.paul
Hi Sorry for that incomplete mail. I am not getting any excetption and that particular field is accepting everthing like characters and getting saved in the database as '0', I guess thats the default value for that field because I have defined that corresponding property in the Action Form a

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread The Jasper
What isn't working? Is it not validating properly? Are you getting some type of exception? Does it accept everything? You can alway check the source code of FieldChecks to find out what it is doing. mvg, Jasper On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote: Hi all, I am tryin

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-04 Thread Martin Gainty
: "Scott Van Wart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, June 03, 2006 6:12 PM Subject: Re: Validation 'depends' attribute order, and 'validwhen' Jakub Milkiewicz wrote: If you are thinking of creating custom validator reme

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-04 Thread Jakub Milkiewicz
Hi. Exactly boy :). 2006/6/4, Scott Van Wart <[EMAIL PROTECTED]>: Jakub Milkiewicz wrote: > If you are thinking of creating custom validator remember that even if > your > custom validator fails it doesn't mean that your form is invalid! You > must > remember to add ActionError/ActionMessage t

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-03 Thread Scott Van Wart
Jakub Milkiewicz wrote: If you are thinking of creating custom validator remember that even if your custom validator fails it doesn't mean that your form is invalid! You must remember to add ActionError/ActionMessage to ActionErrors/ActionMessages passed as a parameter to yor validator. Wow,

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-03 Thread Jakub Milkiewicz
Hi As far as i remeber It works as a chain. Struts processes validators in depends attribute from left to right. If a validator fails (returns false) struts doesn't process the next one. If you are thinking of creating custom validator remember that even if your custom validator fails it doesn't m

RE: Validation with validwhen

2006-06-02 Thread Samere, Adam J
No, js support for validwhen is not provided. You can tell by looking at the validation-rules.xml file, which does not have a jsFunction attribute defined on the "validwhen" validator element. -Original Message- From: Cassio Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 1

RE: validation with validwhen

2006-05-26 Thread fea jabi
[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: RE: validation with validwhen Date: Fri, 26 May 2006 11:56:35 -0500 "and getting the error when used double." Could you explain that? Like what exactly do you input when

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
, 2006 11:51 AM To: user@struts.apache.org Subject: RE: validation with validwhen no, it's not a dumb question. But yah, I do have the key right!! and getting the error when used double. Using 1.2.7 version of struts. Actually I did try >(*this* > 0) too but, this didn't wo

RE: validation with validwhen

2006-05-26 Thread fea jabi
o: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: RE: validation with validwhen Date: Fri, 26 May 2006 10:20:01 -0500 Fea, What version of struts are you using? Dumb question, but are you sure the key "lbl.notvalidnumber" is spelled right in you

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
To: Struts Users Mailing List Subject: RE: validation with validwhen and also make sure it's value is greater than Zero. Do you need >= or > than 0? (*this* > 0) might do the trick. Thanks, Vijaya -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: validation with validwhen

2006-05-26 Thread Krishnan, Vijaya
and also make sure it's value is greater than Zero. Do you need >= or > than 0? (*this* > 0) might do the trick. Thanks, Vijaya -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 11:03 AM To: user@struts.apache.org Subject: RE: v

RE: validation with validwhen

2006-05-26 Thread fea jabi
Thankyou for the response. tried (*this* >= 0) but still not getting error message. any other suggessions? From: "Chaudhary, Harsh" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: RE: validation with

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
Instead of this: (*this* >= 0) Use this: (*this* >= 0) Its to do with how your '>' characters are parsed. Harsh. -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 8:01 AM To: user@struts.apache.org Subject: RE: validation w

Re: validation with validwhen

2006-05-26 Thread The Jasper
Hi, from http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html we learn that: If both items to be compared are convertable to ints, a numeric comparison is done, otherwise a string comparison is done. so since about any string is >= you will almost always get a valid check. I

RE: validation with validwhen

2006-05-26 Thread fea jabi
can someone help me with this please? thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: validation with validwhen Date: Thu, 25 May 2006 12:31:56 -0400 want to validate a property for required, and also make sure it's value

Re: Validation for second field must greater than the first field

2006-05-26 Thread Niall Pemberton
e a good place. Considering it gives you access to a bunch of objects for free like the form bean, fields, the request object, errors object etc. You could probably do it in a separate class cueing off of the data from the form bean, but I think it would be much harder. > > > > >

Re: Validation for second field must greater than the first field

2006-05-26 Thread The Jasper
e like the form bean, fields, the request object, errors object etc. You could probably do it in a separate class cueing off of the data from the form bean, but I think it would be much harder. > > > Harsh. > > -Original Message- > From: Carl Smith [mailto:[EMAIL PROTEC

Re: Validation for second field must greater than the first field

2006-05-26 Thread The Jasper
harder. Harsh. -Original Message- From: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:31 PM To: Struts Users Mailing List Subject: RE: Validation for second field must greater than the first field Harsh, Thanks for the quick response. I was seeking if Stru

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:31 PM To: Struts Users Mailing List Subject: RE: Validation for second field must greater than the first field Harsh, Thanks for the quick response. I was seeking if Struts has the internal validator do this things. If not

RE: Validation for second field must greater than the first field

2006-05-25 Thread Carl Smith
Harsh, Thanks for the quick response. I was seeking if Struts has the internal validator do this things. If not, then I agree with you in that I need to write my own custom validator easily. But I prefer if Struts already has this sort of comparison validator. "Chaudhary, Harsh" <[EMAI

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
The solution is to write a custom validator if you want to do it server side using validator. In your custom validator, create 2 calendars, one each for start date and end date. Then use the method call "before" or "after" on these calendar. Harsh. Man I got a lot of free time today. -Orig

[OT] Re: validation

2006-05-23 Thread Dave Newton
fea jabi wrote: > Have 3 inputfields using which the user will be able to enter the SSN. Why do I not always feel my personal data is safe? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: validation

2006-05-23 Thread Miller, Andy
use the maxlength attribute on your field: Andy Miller IS Designer Butte College 530.895.2946 -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 12:28 PM To: user@struts.apache.org Subject: validation creating a jsp in which the user will be enterin

RE: validation

2006-05-23 Thread Chaudhary, Harsh
Validate each field using integer and intRange attribute values for validation. e.g. min000 max999 And so on. As for making sure on the client side that the user does not enter more than 3 digits, use the "maxLen

RE: Validation Problem

2006-05-21 Thread Paul Benedict
Remember that your validation rules are written in XML, so you must follow XML rules: escape less-than signs, greater-than, and ampersand. If you don't like this, you can always wrap them in CDATA sections: --- Albrecht Leiprecht <[EMAIL PROTECTED]> wrote: > > >If fails, because the test l

RE: Validation Problem

2006-05-21 Thread Albrecht Leiprecht
>If fails, because the test line for validwhen is not wellformed, because of >this comparation >(*this* < 300) It works fine with a check for greaterThan, but it fails with the above lowerThan... >Any Idea how I could change it to make it work ?? >Rgds >Albi I changed this (*this* < 300) To

Re: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
I've tried several things, but the form filed is not being validated. Am I doing the nested form attribute right in the validator.xml? josh t <[EMAIL PROTECTED]> wrote: I'm trying to set up a very basic(generic) validation with struts 1.1 (and tiles) and I can not get it to work. I'm not getti

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
My form is extending ValidatorActionForm, not ValidateActionForm. Sorry about that. Extending ValidatorForm instead didn't help. Since I'm not getting any sort of errors, it's very hard to figure out where the issue may reside. "Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote: I am not

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread Chaudhary, Harsh
I am not 100% on this as I don't know the package "org.apache.struts.chain.commands.servlet.ValidateActionForm" very well, but try extending your form from ValidatorForm from: org.apache.struts.validator.ValidatorForm Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Se

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Paul Benedict
Harsh. > > -Original Message- > From: Paul Benedict [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 5:27 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Validation help: One struts form, multiple actions > > > Chaudhary, > > You

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
From: Paul Benedict [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 5:27 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Validation help: One struts form, multiple actions Chaudhary, You need a custom validation key for each step in the process. Override the form's valida

Re: Validation help: One struts form, multiple actions

2006-05-08 Thread Paul Benedict
hat I think about it, my question is just this: > > Is there a way to selectively validate fields in a struts form? > > Harsh. > > -Original Message- > From: Quinn Stone [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 4:03 PM > To: 'Struts Users Maili

Re: Validation help: One struts form, multiple actions

2006-05-08 Thread Dave Newton
Chaudhary, Harsh wrote: > Now that I think about it, my question is just this: > > Is there a way to selectively validate fields in a struts form? > Yes, only put the fields you want into the validation rule. >>> >>> >>> >>> >>> >>> >>> >>>

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
ere a way in struts to partially validate the fields of a struts form? I hope I was clear in my explanation. Harsh. -Original Message- From: Quinn Stone [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 4:03 PM To: 'Struts Users Mailing List' Subject: RE: Validation help:

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Quinn Stone
My bad. Missed that. How is it blowing out? Q > -Original Message- > From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 1:27 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: RE: Validation help: One struts form, multiple ac

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
3:26 PM To: 'Struts Users Mailing List' Subject: RE: Validation help: One struts form, multiple actions Your form name in validation.xml should be "InputDataForm" (no leading slash), not "/ClientA". > -Original Message- > From: Chaudhary, Harsh [mail

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Quinn Stone
Your form name in validation.xml should be "InputDataForm" (no leading slash), not "/ClientA". > -Original Message- > From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 1:16 PM > To: Struts Users Mailing List > Subject: Validation help: One struts form, multiple

Re: Validation Problems

2006-05-07 Thread Richard Yee
Sandeep, You can do complex validations in your ActionForm validate method. You can also still invoke Validator validations by calling super.validate() in your validation method if you are extending |org.apache.struts.validator.action.ValidatorForm I have found that there are many situations

Re: validation breaks my form prepopulation

2006-05-03 Thread Michael Jouravlev
Kyle, this is not exactly what you are looking for, but maybe it can help a little: http://wiki.apache.org/struts/DataEntryForm (as you might have noticed, I like to draw pictures with blocks and arrows). Michael. - To unsubsc

Re: validation breaks my form prepopulation

2006-05-03 Thread Michael Jouravlev
Are you saying that you've tried to call two mappings, one with an associated actionForm and another without, and when calling action without associated form you get a valid reference to a form? Are you sure? Because it does not sound right, you should get null. On 5/3/06, Kyle W. Cartmell <[EMAI

Re: validation breaks my form prepopulation

2006-05-03 Thread Kyle W. Cartmell
So in a Struts web application if I supply two mappings for a single action, one that has a form and one that does not, and I call the one with the form and then a few seconds later call the one without, the form parameter to the execute method is not null on the second call. I don't understand

Re: validation breaks my form prepopulation

2006-05-03 Thread Kyle W. Cartmell
Thank you Michael. This is extremely descriptive, and I'm going to devote my nightly reading time to your article this evening. :) What this tells me for right now is that this method of transferring data isn't really something I should be using. I'm going to put my temporary session object ma

Re: validation breaks my form prepopulation

2006-05-03 Thread Michael Jouravlev
On 5/3/06, Kyle W. Cartmell <[EMAIL PROTECTED]> wrote: I did some tinkering and found that even though my setup action is indeed associated with a form bean, and my reset method is defined and sets my values to null, when I return to an action from a validation failure or forwarded from another a

Re: validation breaks my form prepopulation

2006-05-03 Thread Kyle W. Cartmell
, the reset method will not be called, and whatever was in the form will be retained. -Original Message- From: Kyle W. Cartmell [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 2:39 AM To: Struts Users Mailing List Subject: Re: validation breaks my form prepopulation This is extr

RE: validation breaks my form prepopulation

2006-05-03 Thread Tarek Nabil
bject: Re: validation breaks my form prepopulation This is extremely helpful, because it gives me the opportunity to prepopulate my form once again should validation fail. There's still a sticky bit here, in that request attributes that are set from a previous form are lost and cannot be rec

Re: validation breaks my form prepopulation

2006-05-02 Thread Kyle W. Cartmell
This is extremely helpful, because it gives me the opportunity to prepopulate my form once again should validation fail. There's still a sticky bit here, in that request attributes that are set from a previous form are lost and cannot be recreated. I believe that this is pretty much something

<    1   2   3   4   5   6   7   8   9   10   >