You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dean Pullen <de...@msp-uk.com> on 2007/10/12 17:12:50 UTC

Validation errors in Action

Hi all,

How do you get hold of the validation errors in an Action?
Basically due to some complexity, we need to manually add an error
within the prepare() method if something isn't correct.

Thanks,

Dean.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Validation errors in Action

Posted by Dean Pullen <de...@msp-uk.com>.
Just stumbled on that as you replied.
Thanks again.
(But not for the pun ;) )

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: 12 October 2007 16:27
To: Struts Users Mailing List
Subject: RE: Validation errors in Action

--- Dean Pullen <de...@msp-uk.com> wrote:
> Is there any documentation anywhere, where I can see
> how to correctly return errors in the validate
> method?

This is a WW article but should still be valid.

Ha ha, valid, get it?

http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Scanned by MailDefender - managed email security from intY -
www.maildefender.net

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Validation errors in Action

Posted by Dave Newton <ne...@yahoo.com>.
--- Dean Pullen <de...@msp-uk.com> wrote:
> Is there any documentation anywhere, where I can see
> how to correctly return errors in the validate
> method?

This is a WW article but should still be valid.

Ha ha, valid, get it?

http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Validation errors in Action

Posted by Dean Pullen <de...@msp-uk.com>.
Is there any documentation anywhere, where I can see how to correctly return errors in the validate method?

Cheers.

-----Original Message-----
From: Julien Leonard [mailto:julien.leonard@consulting-for.accor.com] 
Sent: 12 October 2007 16:17
To: 'Struts Users Mailing List'
Subject: RE: Validation errors in Action

Hello,

Why don't you use the validate() method ?

Julien

-----Message d'origine-----
De : Dean Pullen [mailto:dean.pullen@msp-uk.com] 
Envoyé : vendredi 12 octobre 2007 17:13
À : Struts Users Mailing List
Objet : Validation errors in Action

Hi all,

How do you get hold of the validation errors in an Action?
Basically due to some complexity, we need to manually add an error within
the prepare() method if something isn't correct.

Thanks,

Dean.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Scanned by MailDefender - managed email security from intY - www.maildefender.net

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Validation errors in Action

Posted by Julien Leonard <ju...@consulting-for.accor.com>.
Hello,

Why don't you use the validate() method ?

Julien

-----Message d'origine-----
De : Dean Pullen [mailto:dean.pullen@msp-uk.com] 
Envoyé : vendredi 12 octobre 2007 17:13
À : Struts Users Mailing List
Objet : Validation errors in Action

Hi all,

How do you get hold of the validation errors in an Action?
Basically due to some complexity, we need to manually add an error within
the prepare() method if something isn't correct.

Thanks,

Dean.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org