Re: Validation in Struts 1

2010-10-25 Thread Qiang Li
On Mon, 2010-10-25 at 14:01 -0400, Anjib Mulepati wrote: > ok so is this mean both is server side validation and client side > validation is done with Javascript? > > Also between these two(.xml and execute() method) which one is better? > Any pros and cons? > > Anjib > > On 10/25/2010 1:55 PM

Re: Validation in Struts 1

2010-10-25 Thread Dave Newton
On Mon, Oct 25, 2010 at 2:01 PM, Anjib Mulepati wrote: > ok so is this mean both is server side validation and client side validation > is done with Javascript? ??? No. Client-side validation is done with JavaScript, because that's what runs inside browsers. Server-side validation is done in Ja

Re: Validation in Struts 1

2010-10-25 Thread Anjib Mulepati
ok so is this mean both is server side validation and client side validation is done with Javascript? Also between these two(.xml and execute() method) which one is better? Any pros and cons? Anjib On 10/25/2010 1:55 PM, Dave Newton wrote: That's not combining client- and server-side valida

Re: Validation in Struts 1

2010-10-25 Thread Dave Newton
That's not combining client- and server-side validation, that's combining declarative and programmatic validation, unless you're talking about the JavaScript validation method. Dave On Mon, Oct 25, 2010 at 1:52 PM, Anjib Mulepati wrote: > Hi > > Can we combine client side validation and server s

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 in Struts for Required fields

2004-10-07 Thread Jacob Weber
One more: you need something like this in your ApplicationResources: errors.required={0} is required. In article <[EMAIL PROTECTED]>, Caroline Jen <[EMAIL PROTECTED]> wrote: > To add to the list: > > 5. the validator-rules.xml and validation.xml must be > in the AppName/WEB-INF directory. >

Re: Validation in Struts for Required fields

2004-10-05 Thread Caroline Jen
leaving out? > > Erik > > > > Priya Jotwani wrote: > > >Yes I have set the validate= "true" in and the > field names are same too > >:( > > > >-Original Message- > >From: Erik Weber [mailto:[EMAIL PROTECTED] > >Sent: Tuesday,

Re: Validation in Struts for Required fields

2004-10-05 Thread Erik Weber
your form-bean declarations) What else am I leaving out? Erik Priya Jotwani wrote: Yes I have set the validate= "true" in and the field names are same too :( -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 11:32 PM To: Priya

Re: Validation in Struts for Required fields

2004-10-05 Thread Erik Weber
In your JSP, where are your selects? Are you using html:select tags to produce them? Erik Priya Jotwani wrote: Hi , I have a JSP Page where I have two dropdowns displaying default values. Before submitting that page, the user should select something from these two dropdowns and if he doesn't sel

Re: Validation in Struts

2004-09-18 Thread Rogue Chameleon
In your ActionForm, add the validation to the validate method. For example, you would have something like this: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((person == null) || (person.le

RE: Validation in Struts

2004-09-18 Thread David G. Friedman
Priya, Use the "required" validator rule and be sure to use the html:javascript tag in your JSP to have the client-side Javascript embedded in the page given out to the user. See the first validator, "required", at the below URL: http://struts.apache.org/userGuide/dev_validator.html#builtin Rega

RE: Validation in struts

2004-09-15 Thread Jitender K Chukkavenkata
Divya, if your problem is just to display an error message box instead of the message. use the tag inside validator-rules.xml for your validation and map it with appropriate message key that you want to display. :) Jitender Kumar C.V.

RE: Validation in struts

2004-09-15 Thread Divya B Sridhar
: Jitender K Chukkavenkata [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 6:40 PM To: Struts Users Mailing List Subject: RE: Validation in struts Hi Divya, I think you need to extend your form class with org.apache.struts.validator.action.ValidatorForm or ValidatorActionFrom

RE: Validation in struts

2004-09-15 Thread Jitender K Chukkavenkata
Hi Divya, I think you need to extend your form class with org.apache.struts.validator.action.ValidatorForm or ValidatorActionFrom instead of org.apache.struts.action.ActionForm. have u done it? Regards, Jitender.

RE: Validation in struts

2004-09-15 Thread Divya B Sridhar
o point to validate(this) Is there something else that I am missing ? Thanks, Divya. -Original Message- From: Jitender K Chukkavenkata [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 9:51 AM To: Struts Users Mailing List Subject: Re: Validation in struts U can use struts v

RE: Validation in struts

2004-09-15 Thread Sachin Bhutada
hi Divya, For doing clinet side validation you will have to configure validation framework and write ur own custom validation in that xml file or use the basic validation provided by that framework. In the jsp page you will have to put one struts javascipt tag. This tag will actua

RE: Validation in struts

2004-09-14 Thread Divya B Sridhar
Subject: Re: Validation in struts > It is said that the validation(client side validations like say a > particular textbox field can contain numbers only etc) should not be > explicitly written in client-side validation javascripts in a struts > framework. How can such things be

Re: Validation in struts

2004-09-14 Thread Greg Ludington
> It is said that the validation(client side validations like say a particular > textbox field can contain numbers only etc) should not be explicitly written > in client-side validation javascripts in a struts framework. How can such > things be accomplished using struts without writing specific cl

Re: Validation in struts

2004-09-14 Thread Jitender K Chukkavenkata
U can use struts validations framework as well go thru struts validation framework.. Jitender Kumar C.V. IBM Global Services India (Pvt.) Ltd., Embassy Golf Links Business Park, Block C, Bangalore - 560 071. Phone : + 91 (80) 51056320 Mobile: + 91 9886219429 Location : EGC-3*-058.