Martin Ravell wrote:
> So you call validate from within the Action?
>
Yes.
> Do you then have to forward back to the original page if you have errors?
>
Yes.
One nice thing about doing validation "manually" (see below) is that I
can add further validation that would be irritating to do in
va
>
>I'm not using extension mapping so I'm not sure about this, but have you
>tried input="/activate" instead of input="/activate.do"? It's certainly
>possible for the input attribute to point to an action rather than a JSP
>or Tiles def.
>
>L.
Part of the problem is that my actions typically ex
>I call validate manually, but since I'm using DynaValidatorActionForms
>I'm using the validation defs from the validator XML config file. This
>is quite a bit more flexible to boot.
>
>In any case, I use tiles and validator together all the time so I'm not
>quite sure where your problem lies:
>
>
#x27;s certainly
possible for the input attribute to point to an action rather than a JSP
or Tiles def.
L.
Any ideas?
Regards
Marty
-Original Message-
From: Vasumathi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 24 January 2006 4:44 PM
To: Struts Users Mailing List
Subjec
Martin Ravell wrote:
> This basically means I am not using the Validator. Sticking everything in
> the Action negates all the advantages of getting this stuff unbound.
>
I don' really see it that way.
I call validate manually, but since I'm using DynaValidatorActionForms
I'm using the validatio
January 2006 9:42 PM
To: Struts Users Mailing List
Subject: RE: Struts, Tiles and the Validator
dont change anything in struts_config.xml.
write your validation in action itself instead of writing in validation.xml
for your Form.
like,
if(id == null){
request.setAttribute("error","
Marty
>
>
> -Original Message-
> From: Vasumathi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 24 January 2006 4:44 PM
> To: Struts Users Mailing List
> Subject: Re: Struts, Tiles and the Validator
>
> Hi
> you try like this in struts_config.xml and tiles
I guess I should ask the overall question:
Does anyone successfully use the plugin validator with a Struts / Tiles
based application?
If so how are the action elements setup with regard to the input option?
Assuming that you can do the above is it then possible to have multiple
pages contributin
s like '/activate.do?method=init' into the input
option of the action element but this refuses to work.
Any ideas?
Regards
Marty
-Original Message-
From: Vasumathi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 24 January 2006 4:44 PM
To: Struts Users Mailing List
Subject: Re: Strut
Hi
you try like this in struts_config.xml and tiles_sam.xml file.
in tiles for this sample.jsp
this may help u
Quoting Martin Ravell <[EMAIL PROTECTED]>:
> Say I have an app th
Say I have an app that uses Struts and Tiles and I am trying to get the
Validator plugin to play nicely.
As I understand it the 'input' option of an action element in
struts-config.xml is used when a validation fails. i.e. if a validation
fails we are redirected to whatever is in the input option
11 matches
Mail list logo