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
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
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
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
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
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
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.
>
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,
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
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
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
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
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.
: 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
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.
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
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
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
> 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
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.
20 matches
Mail list logo