You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lic <st...@yahoo.com.hk> on 2004/08/25 08:49:05 UTC

Struts 1.2 - ActionForm.validate(...)

In Struts 1.2, the ActionForm.validate return ActionErrors. However, 
ActionErrors will be deprecated after 1.2. If I want to valid the data in 
ActionForm, what I can do?

Struts newbie


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


Re: Struts 1.2 - ActionForm.validate(...)

Posted by Sebastian Ho <se...@bii.a-star.edu.sg>.
I read it somewhere the best thing to do now is to use actionerror for
pure error and use actionmessage for all the other purpose while we wait
for next struts release.

sebastian ho


On Wed, 2004-08-25 at 16:10, Shinobu Kawai wrote:
> Hi Lic,
> 
> > In Struts 1.2, the ActionForm.validate return ActionErrors. However, 
> > ActionErrors will be deprecated after 1.2. If I want to valid the data in 
> > ActionForm, what I can do?
> Where does it say that ActionErrors will be deprecated?  I know that
> ActionError will be deprecated...
> 
> Best regards,
> -- Shinobu Kawai
> 
> --
> Shinobu Kawai <shinobu@ieee.org, shinobu@computer.org>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Re: Struts 1.2 - ActionForm.validate(...)

Posted by Shinobu Kawai <sh...@ieee.org>.
Hi Lic,

> In Struts 1.2, the ActionForm.validate return ActionErrors. However, 
> ActionErrors will be deprecated after 1.2. If I want to valid the data in 
> ActionForm, what I can do?
Where does it say that ActionErrors will be deprecated?  I know that
ActionError will be deprecated...

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <shinobu@ieee.org, shinobu@computer.org>




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


RE: Struts 1.2 - ActionForm.validate(...)

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
ErroR is deprecated.
Errors not ...
http://struts.apache.org/api/org/apache/struts/action/ActionError.html

http://struts.apache.org/api/org/apache/struts/action/ActionErrors.html


how ever, on bugzilla there is a discussion on that :)
http://issues.apache.org/bugzilla/show_bug.cgi?id=29679

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Lic
> Sent: Wednesday, August 25, 2004 8:49 AM
> To: user@struts.apache.org
> Subject: Struts 1.2 - ActionForm.validate(...)
> 
> 
> In Struts 1.2, the ActionForm.validate return ActionErrors. However, 
> ActionErrors will be deprecated after 1.2. If I want to valid 
> the data in 
> ActionForm, what I can do?
> 
> Struts newbie
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


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