You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2006/03/13 16:09:39 UTC

html:messages or html:errors???

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.e using

<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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:messages or html:errors???

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
<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" <ju...@gmail.com>
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 <zy...@hotmail.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:messages or html:errors???

Posted by Jubin Kuriakose <ju...@gmail.com>.
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 <zy...@hotmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

How to use html:link in Websphere Portlet

Posted by makarand sonawane <ma...@yahoo.com>.
Hi All,
   
  I am not sure if this is correct forum , but still if some one outhere has any information. Please let me know.
   
  I am developing Struts Portlet for multiple portletes. To switch back to View Mode from Edit Mode I am using <html:link urltype="return">
  Webspher has added attribute urltype to link tag.
   
  The problem is My Edit mode is has window state maximized but the view mode is Normal. When I click html:link for the first time it switches to View Mode and the window state is normal. But whe I again go back to Edit Mode and try to Switch to View Mode, the view page is displayed but the window state remains in Maximized state. This happens for all alternate mode switching operation

		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: html:messages or html:errors???

Posted by Wendy Smoak <ws...@gmail.com>.
On 3/13/06, fea jabi <zy...@hotmail.com> wrote:

> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??

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

--
Wendy

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