Mark Lowe wrote:

Satish

ActionErrors isn't deprecated, ActionError is...

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

ActionErrors errors = new ActionErrors();
errors.add("myproperty" , new ActionMessage(...));
return errors;


And then personally i prefer

<html:errors property="myproperty" />

But there are good reasons for preferring html:messages as you can hide whole sections of unwanted html using them..

Mark


There is a good presentation at page 421 /et seq. /in Ted Husted's _Struts in Action_. Unfortunately, despite the excellent quality of Manning books, the index in this one is not top notch. Ted has a huge amount of goodly things you find only by reading the whole book rather than using it as a resource through the index.

Michael McGrrady


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to