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.
>
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to