struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Using Struts Validator framework
Date Sun, 18 Mar 2007 20:22:20 GMT
--- "Kaushal, Anubhav" wrote:
> The user input is taken and then corresponding
> record is fetched from the database. Depending on
> the query result, I need to display appropriate 
> message to the user. How can I achieve this? 

It's not clear to me what this has to do with the
Validator framework, which is primarily for validating
forms.

If you want to display an error message using the
Struts errors or messages tags if, say, the record is
not found, you can use the Action class's addErrors or
addMessages methods.

d.



 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

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


Mime
View raw message