Re: Validator framework and DispatchAction

2003-08-28 Thread K.C. Baltz
You're going to have to provide us the stack trace so we can tell with method is not being found. K.C. Venkat Jambulingam wrote: Hi there, I extended my Action classes with DispatchAction class and it works just fine. Now I am trying to use validator framework in my app. JavaScript

RE: Validator and DispatchAction

2003-08-28 Thread Steve Raeburn
Ok, I see one potential problem. Your methods are declared as throwing ServletException and IOException, but for Struts 1.1 they should be declared as throwing Exception. public ActionForward create( ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: Validator with property String array problem

2003-08-27 Thread Nicholas L Mohler
: Subject: Re: Validator with property String array problem 08/26/2003 02:27 PM

RE: Validator JavaScript and html:radio buttons

2003-08-27 Thread Yee, Richard K,,DMDCWEST
Matt, Are you using the Struts html:radio tag to display the radio buttons? If so, you should initialize the field in the FormBean that contains the value of the radio button so that Struts marks one of the buttons as 'checked' for you. Regards, Richard -Original Message- From: Matt E

RE : RE : RE : Validator and Dispatch Actions

2003-08-27 Thread thomas Sontheimer
here is another means to do it: http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorDispatchAction -Original Message- From: Trent Fisher [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 9:26 PM To: [EMAIL PROTECTED] Subject: Re: RE : RE : Validator and Dispatch Actions

Re: Validator and DispatchAction

2003-08-27 Thread Nagendra Kumar O V S
hi validator has nothing to do with Dispatch action. paste ur code here if possible to trace ur problem --nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, August 27, 2003

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method named error java.lang.NoSuchMethodException: errorjava.lang.NoSuchMethodException: error at java.lang.Class.getMethod0(Native Method)

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
defined in the dispatchaction class. have u defined the parameter for this action mapping?? -- nagi ---Original Message--- From: Venkat Jambulingam Date: Wednesday, August 27, 2003 09:13:27 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi

RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
[mailto:[EMAIL PROTECTED] Sent: August 27, 2003 8:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method

RE: Validator and DispatchAction

2003-08-27 Thread Yansheng Lin
Raeburn [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 10:05 AM To: Struts Users Mailing List Subject: RE: Validator and DispatchAction This is the relevant part of the message: Action[/tr518page1] does not contain method named error Does your DispatchAction class

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method named error java.lang.NoSuchMethodException

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
:[EMAIL PROTECTED] Sent: August 27, 2003 8:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator with DispatchAction: [ERROR] DispatchAction - -Action[/tr518page1] does not contain method named

RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
:[EMAIL PROTECTED] Sent: August 27, 2003 9:58 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Validator and DispatchAction Hi Steve, I don't have a method named error in my action class. I don't need one. Why is it looking for such a method in my action class? Help me please. I have

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
://www.ninsky.com/struts/ -Original Message- From: Venkat Jambulingam [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 8:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
://www.ninsky.com/struts/ -Original Message- From: Venkat Jambulingam [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 8:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Hi Nagi, Here is the error I'm getting while using validator

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
://www.ninsky.com/struts/ -Original Message- From: Venkat Jambulingam [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 9:58 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Validator and DispatchAction Hi Steve, I don't have a method named error in my action class. I don't need

RE: Validator and DispatchAction

2003-08-27 Thread Yee, Richard K,,DMDCWEST
Venkat, What was the solution? -R -Original Message- From: Venkat Jambulingam [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: RE: Validator and DispatchAction It works now. Thank you everyone for helping me. [EMAIL PROTECTED] 08/27

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
PROTECTED] Subject: RE: Validator and DispatchAction It works now. Thank you everyone for helping me. [EMAIL PROTECTED] 08/27/03 12:58PM Hi Steve, I don't have a method named error in my action class. I don't need one. Why is it looking for such a method in my action class? Help me please. I have

Re: RE : Validator and Dispatch Actions

2003-08-26 Thread manglu
Thomas, How do i have 3 actions here? I have only one action with three methods each working on SEARCH, CREATE and EDIT.(which is why i use the dispatch Action) Appreciate any other thoughts. TIA, Manglu thomas Sontheimer wrote: you have to use (Dyna)ValitatorActionForm instead of

RE: Validator JavaScript and html:radio buttons

2003-08-26 Thread Kruse, Matt
IIRC, it's invalid HTML unless exactly one of the radio button options is selected. That's not true. Not really. From the specs: QUOTE Radio buttons are like checkboxes except that when several share the same control name, they are mutually exclusive: when one is switched on, all others

RE: Validator JavaScript and html:radio buttons

2003-08-26 Thread Cezar Nasui
Hi Matt, As the other said I would suggest to have one button already selected unless your business logic says not to suggest something to the user. I think your generated Javascript doesn't check to see if at least one button is selected. Can you post the JS code and the code for the submit

RE : RE : Validator and Dispatch Actions

2003-08-26 Thread thomas Sontheimer
if (!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); } thomas -Original Message- From: manglu [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 5:44 PM To: [EMAIL PROTECTED] Subject: Re: RE : Validator

Re: RE : RE : Validator and Dispatch Actions

2003-08-26 Thread Robert Leland
thomas Sontheimer wrote: Could you add this to the Validator Wiki FAQ ? At : http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorFAQ Be sure to give yourself credit if you want to use different validation rules with the validator you have to declare different action elements in your

RE : RE : Validator and Dispatch Actions

2003-08-26 Thread Nicholas L Mohler
To: 'Struts Users Mailing List' [EMAIL PROTECTED] thomas.sontheimecc: [EMAIL PROTECTED] Subject: RE : RE : Validator and Dispatch

Re: Validator with property String array problem

2003-08-26 Thread Suhel Rizvi Hotmail Account
-validator for validating propety String arrays ? Thanks and regards Suhel - Original Message - From: David Graham [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 22, 2003 2:41 PM Subject: Re: Validator with property String array problem Commons

Re: Validator with property String array problem

2003-08-26 Thread java-dude
Hi David, Thanks for the info but still not made progress and wonder if you can help or point me in the right direction for implementation guidance. I tried downloading latest nightly build of commons-validator (commons-validator-20030826.zip)as you suggested and deployed it into my

Re: Validator with property String array problem

2003-08-26 Thread David Graham
[EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 22, 2003 2:41 PM Subject: Re: Validator with property String array problem Commons Validator was recently modified to allow the required validation in Struts to run on String[] or Collection objects

Re: RE : RE : Validator and Dispatch Actions

2003-08-26 Thread Trent Fisher
approach that is recommended vs. this one? From: thomas Sontheimer [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE : RE : Validator and Dispatch Actions Date: Mon, 25 Aug 2003 17:04:35 +0200 you don't need 2 action

RE : Validator and Dispatch Actions

2003-08-25 Thread thomas Sontheimer
you have to use (Dyna)ValitatorActionForm instead of (Dyna)ValidatorForm. Then in your validation.xml file for each new rule you specify you have to replace the name of the form by the name of the action using the form. And the rule will be applied to the form only if it's called from the action

Re: RE : Validator and Dispatch Actions

2003-08-25 Thread Trent Fisher
accomplished. From: thomas Sontheimer [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE : Validator and Dispatch Actions Date: Mon, 25 Aug 2003 15:21:47 +0200 you have to use (Dyna)ValitatorActionForm instead of (Dyna

RE : RE : Validator and Dispatch Actions

2003-08-25 Thread thomas Sontheimer
, 2003 4:05 PM To: [EMAIL PROTECTED] Subject: Re: RE : Validator and Dispatch Actions This being the case, say you had a situation where your form had a few fields that would be disabled/not displayed if a user didnt have a certain access level. If you wanted 2 separate validation

RE: Validator JavaScript and html:radio buttons

2003-08-25 Thread Wendy Smoak
The Javascript checking generated by the Validator framework doesn't give an error if neither on is selected, however the backend will, and produce an error I can see with the html:errors tag. IIRC, it's invalid HTML unless exactly one of the radio button options is selected. In your case

Re: validator returns blank page

2003-08-25 Thread Koni Roth
Hi Thomas Here what I would do. struts-config.xml: actionpath=/logon/action/logon type=test.web.struts.action.logon.LogonAction name=logonForm scope=request-- !!! validate=false -- !!!

Re: RE : RE : Validator and Dispatch Actions

2003-08-25 Thread Trent Fisher
preferred way of accomplishing this? Thanks From: thomas Sontheimer [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE : RE : Validator and Dispatch Actions Date: Mon, 25 Aug 2003 17:04:35 +0200 you don't need 2 action

Re: Validator with property String array problem

2003-08-22 Thread David Graham
Commons Validator was recently modified to allow the required validation in Struts to run on String[] or Collection objects. You can download the latest Validator nightly build to try it out. David --- java-dude [EMAIL PROTECTED] wrote: Hi, I am having problems using Validator framework to

Re: [Validator] The Validator Wiki needs you !

2003-08-18 Thread Adam Hardy
Hi Robert, I put some stuff on there but my knowledge of wiki is only sketchy, so I have left a page where all the capitalized words have got a question mark after them for creating new pages. I couldn't find any wiki instructions anywhere - if you give me a good link, I can post it on the

Re: [Validator] The Validator Wiki needs you !

2003-08-18 Thread Robert Leland
Adam Hardy wrote: Hi Robert, I put some stuff on there but my knowledge of wiki is only sketchy, so I have left a page where all the capitalized words have got a question mark after them for creating new pages. I couldn't find any wiki instructions anywhere - if you give me a good link, I can

Re: [Validator] The Validator Wiki needs you !

2003-08-18 Thread Robert Leland
I also went through my old emails and added a few items to the FAQ + one Validator Extension On 08/18/2003 06:08 AM Robert Leland wrote: There is now a Commons Validator Wiki ! Beware this is only a shell to start collecting tips, FAQs, and examples for using validator. You can make a much

[OT] Re: [Validator] The Validator Wiki needs you !

2003-08-18 Thread Susan Bradeen
Warning: really, really basic questions (apologies in advance) ... On 08/18/2003 09:45:44 AM Robert Leland wrote: Adam Hardy wrote: Hi Robert, I put some stuff on there but my knowledge of wiki is only sketchy, so I have left a page where all the capitalized words have got a question

Re: [OT] Re: [Validator] The Validator Wiki needs you !

2003-08-18 Thread Robert Leland
Susan Bradeen wrote: Warning: really, really basic questions (apologies in advance) ... On 08/18/2003 09:45:44 AM Robert Leland wrote: Adam Hardy wrote: Hi Robert, I put some stuff on there but my knowledge of wiki is only sketchy, so I have left a page where all the capitalized words

Re: [validator] currency values and datatypes

2003-08-16 Thread Robert Leland
Matt Raible wrote: First question - Should I be using Floats or Doubles? Well Javascript has something it call float but no double. I don't know what the precision is but as you noticed validator only has a validateFloat() JS function. Robert Leland [EMAIL PROTECTED]

RE: Validator

2003-08-14 Thread Erez Efrati
It's in the code of FieldsCheck.java. I was trying to create one of my own validator and I saw these lines there. Erez -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 12:10 AM To: 'Struts Users Mailing List' Subject: RE: Validator ??? I

Re: Validator for checkboxes input field

2003-08-14 Thread José Fortunato H. Tomás
Alex Shneyderman wrote: Out of curiosity, how do you group a number of checkboxes? You name then tha same and what you get on the server side is a list of values. Yup! List, fisicaly an Array! I didn't look to the source code, in the HTTP request using TCPReflector you may see for a group of

Re: Validator for checkboxes input field

2003-08-14 Thread Adam Hardy
You would have to roll your own I presume, since a checkbox is either checked or null. How would you check for null? It seems counter-intuitive. Out of curiosity, how do you group a number of checkboxes? Adam José Fortunato H. Tomás wrote: Hi! Any one has an example or code using Validator

RE: Validator

2003-08-14 Thread Adolfo Miguelez
PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Validator Date: Mon, 11 Aug 2003 08:52:04 -0700 Are you running Struts 1.1? I think this is a problem that was fixed before 1.1 final was released. Steve -Original Message- From: Adolfo

Re: Validator for checkboxes input field

2003-08-14 Thread Robert Leland
José Fortunato H. Tomás wrote: Hi! Any one has an example or code using Validator for a form-bean where exists an input that is a group of checkboxes? I need to use required, and number of cheks checked, but until now I couldn't find any way to use validator correctly for this kind of

RE: Validator for checkboxes input field

2003-08-14 Thread Yansheng Lin
Even thought about using multibox? Here is a good tutorial by Ted Husted: http://husted.com/struts/tips/007.html As to numer of checks, you might want to write your own validator. That's very customized functionality. Hope this helps! -Original Message- From: José Fortunato

RE: Validator for checkboxes input field

2003-08-14 Thread Alex Shneyderman
Out of curiosity, how do you group a number of checkboxes? You name then tha same and what you get on the server side is a list of values. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Validator for checkboxes input field

2003-08-14 Thread José Fortunato H. Tomás
You give the same name for all checkboxes, this is obvious I think! If you define an property as an Integer[] for example, then you receave an Array with a number of entries equal to the number of boxes checked. I have, some weeks ago, made an basic ActionForm, and if I'm correct, when the

Re: Validator

2003-08-14 Thread Doug
] Sent: Sunday, June 22, 2003 9:42 PM Subject: RE: Validator HI keith, comment your dtd declarations in both ur validator.xml validator-rules.xml and try. this should work for u.. -nagi

RE: Validator

2003-08-14 Thread Steve Raeburn
Are you running Struts 1.1? I think this is a problem that was fixed before 1.1 final was released. Steve -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 8:12 AM To: [EMAIL PROTECTED] Subject: Re: Validator What about replacing reference

Re: Validator

2003-08-14 Thread Adolfo Miguelez
[EMAIL PROTECTED] Subject: Re: Validator Date: Mon, 11 Aug 2003 09:15:59 -0500 On one of our machines that cannot get to the internet, the DTD references definitely cause validation to be ignored completely. I believe we can see errors during the web application's startup (or we probably wouldn't

RE: Validator

2003-08-14 Thread Yansheng Lin
: August 6, 2003 5:13 PM To: 'Struts Users Mailing List' Subject: RE: Validator It's in the code of FieldsCheck.java. I was trying to create one of my own validator and I saw these lines there. Erez -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, August

RE: Validator

2003-08-12 Thread Bailey, Shane C.
a check on the String[].length and determine that nothing is there and throw the user back to the form. -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 7:13 PM To: 'Struts Users Mailing List' Subject: RE: Validator It's in the code

RE: Validator

2003-08-10 Thread Yansheng Lin
??? I don't see it in my validation-rules.xml. Which version are you using? -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 3:33 PM To: 'Struts Users Mailing List' Subject: Validator I am trying to figure out the code in

RE: Validator

2003-08-07 Thread Yansheng Lin
Users Mailing List' Subject: RE: Validator I don't think it is the formbean that is checked for isString() it is the data members of the formbean. Since it is http I guess there is only 2 choices: String and String[] and so the test determines how the validation for a value is to be done. Kinda

RE: Validator

2003-08-07 Thread Bailey, Shane C.
here... It would be the difference between testing .length and .length() !! :-) -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 6:30 PM To: 'Struts Users Mailing List' Subject: RE: Validator I guess it's more efficient if bean is a String

Re: Validator required not working with String[] multi-select

2003-08-04 Thread Kris Schneider
AFAIK, the standard required validator doesn't work with arrays. Or, if it does, I wasted time writing a custom validator ;-). I'd be intersted to hear if anyone really has used the required validator successfully for an array field. I suppose I should check to see if there's a bug/RFE for an

RE: Validator required not working with String[] multi-select

2003-08-04 Thread Bailey, Shane C.
problem for String[] and doesn't appear to have broken and validations which worked before. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:52 PM To: Struts Users Mailing List Subject: Re: Validator required not working with String[] multi

Re: Validator required not working with String[] multi-select

2003-08-04 Thread Rob Leland
before. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:52 PM To: Struts Users Mailing List Subject: Re: Validator required not working with String[] multi-select AFAIK, the standard required validator doesn't work with arrays

RE: Validator required not working with String[] multi-select

2003-08-04 Thread Bailey, Shane C.
I've never done this before with apache bugzilla so let me know if I did Ok. View bug number 22121. -Original Message- From: Rob Leland [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 5:17 PM To: Struts Users Mailing List Subject: Re: Validator required not working with String

Re: Validator: Is validwhen available ?

2003-07-31 Thread Nagendra Kumar O V S
hi, 'validwhen' is available in the nightly builds... -- nagi ---Original Message--- From: Struts Users Mailing List Date: Thursday, July 31, 2003 02:08:30 PM To: [EMAIL PROTECTED] Subject:

RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
So it's not available in the initial Struts 1.1 final release? Is there an alternative to validwhen that can do the same job? - Keith -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:49 AM To: [EMAIL PROTECTED] Subject: Re

RE: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
did :-) Steve -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: July 31, 2003 1:49 AM To: [EMAIL PROTECTED] Subject: Re: Validator: Is validwhen available ? hi, 'validwhen' is available in the nightly builds... -- nagi

RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
10:59 AM To: Struts Users Mailing List Subject: RE: Validator: Is validwhen available ? The nightly builds are not working for now because of a problem with the build machine. ValidWhen has been added to the source but, for now, you'll need to check it out from CVS and do your own build

RE: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
of the code and removal of deprecations. Keep monitoring the struts-dev list for activity. Steve -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: July 31, 2003 8:00 AM To: 'Struts Users Mailing List' Subject: RE: Validator: Is validwhen available

Re: Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Jeff Kyser
If your code is a direct cut-n-paste, you've got an extra '' in your first regular expression? var-value^[a-zA-Z0-9_.-]*$/var-value -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: var-value^[a-zA-Z0-9_.-]*$/var-value

Re: Validator Framework: Can not evaluate regular expression

2003-07-30 Thread David Graham
Password fields are only run against the required validation in the client side javascript for security purposes. Password fields are validated with all rules on the server side though. David --- Dirk Behrendt [EMAIL PROTECTED] wrote: Hi! No, I do not have an extra '' in my code. The

RE: Validator not working

2003-07-28 Thread Steve Caswell
. -Original Message- From: Gabriel Guerreiro [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 12:58 PM To: Steve Caswell Subject: Re: Validator not working Thanks for your advice. Logging is a subject I didn´t care much about. In Struts 1.0 I used only servlet.log(...). I gess the validator

RE: Validator Syntax

2003-07-28 Thread Kamholz, Keith (corp-staff) USX
By the way, that field that I gave as an example should only accept any of those 4 values. I think I need to use == rather than !=, but it doesn't work either way. Any ideas? - Keith -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Monday, July

Re: Validator - NullPointerException

2003-07-27 Thread Koni
After a few direct questions about how I solved the problem, here the answer: The database for my application was missing eg. not started. The error (NullPointerException) shown in the browser was more than strange but now it works fine... Koni Koni Roth wrote: Hello I'm running Netbeans 3.5

RE: Validator range server-side check assumes Integer?

2003-07-25 Thread Yansheng Lin
Then use doubleRange:). -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin Sent: July 24, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: Re: Validator range server-side check assumes Integer? I want to check that it's within range and also a double

Re: Validator Problem when using Required

2003-07-24 Thread will . durrant
Hi, I think i'm having a similar problem with struts validation in that there seems to be a two stage validation process. All 'required' fields seem to be validated first and only once they are resolved then the min and max length validation is processed. My validation.xml is as follows;

Re: Validator Problem when using Required

2003-07-24 Thread Adam Hardy
R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only 2 characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the *minlength* condition

Re: Validator Problem when using Required

2003-07-24 Thread R Balaji
Adam Hardy wrote: R Balaji wrote: If i fail to give the userName it is prompting, that userName is required. But if i input only 2 characters for the userName, while all other ( some of the other ) fields are empty it prompts only about all other required fields, and not validating the

Re: Validator validwhen

2003-07-24 Thread Michael Nascimento Santos
It is not supported, but you can get it from the CVS repository. []s Michael Nascimento Santos JSR-207 Expert Group Member Sun Certified Programmer for the Java 2 Platform Sun Certified Programmer for the Java 2 Platform 1.4 Sun Certified Web Component Developer for J2EE Moderador SouJava -

Re: Validator Problem when using Required

2003-07-24 Thread Adam Hardy
R Balaji wrote: I think it would be better if we prompt all the errors at once to the user. The user should not wait till entering the valid fields and then check for the validity of the entered values. The Required condition should take the precedence over all other condition for that

RE: Validator range server-side check assumes Integer?

2003-07-24 Thread Yansheng Lin
Try to use 'intRange' instead of 'range'. 'range' is deprecated. Also if it's a int, why there is a 'double' in depends? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin Sent: July 24, 2003 2:02 PM To: [EMAIL PROTECTED] Subject: Validator range

Re: Validator range server-side check assumes Integer?

2003-07-24 Thread Brian Chaplin
I want to check that it's within range and also a double. With or without the double it still tries to validate it as an integer. I suspect intRange will continue to do that. Yansheng Lin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try to use 'intRange' instead of 'range'. 'range'

Re: Validator validwhen

2003-07-23 Thread Rob Leland
Lukas Bradley wrote: A quote from http://jakarta.apache.org/struts/userGuide/dev_validator.html The new validwhen validation rule, which will be included into the Struts release immediately after the 1.1 release, is designed to handle these cases. Does this mean validwhen is or is not supported

Re: Validator Problem

2003-07-22 Thread Siva
Hi prashant, In the validation.xml file, you have to give a name for the args. (how can it know that for what validation it has to use the args ?) So the arg0 shuld also contain a property called name=required Please let me know whether it works, Sivakumar [EMAIL PROTECTED] wrote: Hi, I

Re: Validator Problem

2003-07-22 Thread prashant . mdesai
PROTECTED]Subject: Re: Validator Problem entnet.com

Re: Validator Problem

2003-07-22 Thread Adam Hardy
Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message title cannot be less than 2 characters for the minlength validation, but I get title cannot be more than null characters for the maxlength validation. field property=title

RE: Validator Problem

2003-07-22 Thread Canning, Chuck
Chuck -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message title

Re: Validator Problem

2003-07-22 Thread Adam Hardy
, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva, on a related problem, can you see what is wrong this the following xml, because I get the error message title cannot be less than 2 characters for the minlength validation, but I get title cannot be more than null

Re: Validator Problem

2003-07-22 Thread Adam Hardy
/var var var-nameminlength/var-name var-value2/var-value /var /field Chuck -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:21 PM To: Struts Users Mailing List Subject: Re: Validator Problem Hi Siva

Re: Validator form 'vs' reset method in ActionForm and DynaActionForm

2003-07-18 Thread José Fortunato H. Tomás
Thanks any way, I have already the solution. Hi! I'm trying to evaluate how to move my ActionForm's to Validator one's. I found a problem for which I don't see the solution. In basic (Dyna)ActionForm we have the reset() method, where we have access to the request, and from there we can set

Re: Validator : date

2003-07-17 Thread Michael Nascimento Santos
You must define a datePattern var in your validation.xml config, such as: field property=aDate depends=date var var-namedatePattern/var-name var-valueMM-dd-/var-value /var /field This way, the validator knows when the value entered is valid according to your pattern. In

Re: Validator : date

2003-07-17 Thread Phil Shrimpton
On Thursday 17 July 2003 13:15, Michael Nascimento Santos wrote: Hi, You must define a datePattern var in your validation.xml config, such as: field property=aDate depends=date var var-namedatePattern/var-name var-valueMM-dd-/var-value /var /field Same error, but

Re: validator validwhen not working?

2003-07-09 Thread David Graham
Are you using a nightly build after 1.1 final? ValidWhen was not included with 1.1. David --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi, I'm trying to use validwhen, so that it's only valid when either all three related fields are empty or are filled, it's valid; otherwise not. ssn_1,

RE: validator validwhen not working?

2003-07-09 Thread Poon, Johnny
Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:56 AM To: Struts Users Mailing List Subject: Re: validator validwhen not working? Are you using a nightly build after 1.1 final? ValidWhen was not included with 1.1. David --- Poon, Johnny [EMAIL PROTECTED

Re: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
should it be a validatorForm? sandeep --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi, I'm using trying to use ValidatorActionForm and tile, but the submit button is outside of the form on a different JSP, therefore, I need to submit my form indirectly using a link and javascript (see code

RE: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
[mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 10:48 AM To: Struts Users Mailing List Subject: Re: Validator using A href instead of html:submit should it be a validatorForm? sandeep --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi, I'm using trying to use ValidatorActionForm

RE: Validator using A href instead of html:submit

2003-07-07 Thread Poon, Johnny
];)); } -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:29 AM To: Struts Users Mailing List Subject: RE: Validator using A href instead of html:submit What is the javascript created by the custom tag when looking at the source? I think

RE: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
select your state of residence to continue., new Function (varName, return this[varName];)); } -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:29 AM To: Struts Users Mailing List Subject: RE: Validator using A href instead

Re: Validator Still confusing me

2003-06-30 Thread Gemes Tibor
MaFai rta: validator-rules.xml !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN http://jakarta.apache.org/commons/dtds/validator_1_0.dtd; form-validation global validator name=required

Re: Re: Validator Still confusing me

2003-06-30 Thread MaFai
Hello, Gemes Tibor, why?I only need the require function. and which validator must be add in validator-rules.xml? === At 2003-06-30, 13:31:00 you wrote: === MaFai írta: validator-rules.xml !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator

Re: Validator Still confusing me

2003-06-30 Thread Gemes Tibor
MaFai rta: Hello, Gemes Tibor, why?I only need the require function. This line of yours contradicts the above statement: fieldproperty=symbol depends=required,mask,minlength and which validator must be add in validator-rules.xml? Why cannot be all of them

RE: Validator with LookupDispatchAction and Tiles

2003-06-23 Thread Sandeep Takhar
to implement, but I am always open to suggestions :-) Nick -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 1:35 PM To: Struts Users Mailing List Subject: RE: Validator with LookupDispatchAction and Tiles You seem

RE: Validator

2003-06-23 Thread Kamholz, Keith (corp-staff) USX
: Friday, June 20, 2003 3:20 PM To: Struts Users Mailing List Subject: Re: Validator For client-site validation you can omit steps 9, 10, 11, 12 However couple more steps are required: 9a) html:javascript formName=your_form_name/ in page header 10a) for form tag: onsubmit=return

<    1   2   3   4   5   6   >