<html:errors> isn't deprecated - both <html:errors> and <html:messages>
offer different ways of doing the same thing.  When it comes to displaying a
message against a single property, <html:errors> is easier and the issue of
including markup in resource bundles doesn't arise.

http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Niall

----- Original Message ----- 
From: "Jubin Kuriakose" <[EMAIL PROTECTED]>
Sent: Tuesday, March 14, 2006 3:04 AM


Hi fea
<html:errors/> is deprecated as it doesn't allow html styling to the
messages, the only way thats possible is through the reasource bundle which
is bad design priciple. <html:messages> allow messages to be formatted using
html.
here is an eg.

>    <font color="green">
>                             <logic:messagesPresent name="fincoreMsgQueue">
>
>                                 <div class="headers"><img src="minus.gif"
> class="showstate" onClick="expandcontent(this, 'sc1')" />
>                                     Message Queues</div>
>                                 <div id="sc1" class="switchcontent">
>                                               <html:messages id="msgQueue"
> name="fincoreMsgQueue">
>                                         <li><bean:write
> name="msgQueue"/></li>
>                                         </html:messages>
>                                 </div>
>
>                             </logic:messagesPresent>
>          </font>
>


jubs



On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
>
>
> I am using html:errors now and displaying errors for each property
i.eusing
>
> <html:errors property="custName"/>
>
>
> Just wondering why html:messages is available? when this tag can be used?
> Thanks.



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

Reply via email to