Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:messages vs html:errors

 
wrushasen dakhane
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Here I am trying to understand the difference between html:messages and html:errors.

As both of them displays the ActionMessages and ActionErrors object which have been added to the request in the Business login section.

Can anybody explains the exact difference?

Wrushu
 
Dom Lassy
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ActionErrors have been deprecated in previous releases and are currently removed from the latest version of Struts (1.3.8).

ActionMessages is what should be used.
[ May 23, 2007: Message edited by: Dom Lassy ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to clarify: it is the ActionError class, not the ActionErrors class that has been deprecated. The ActionErrors class is still listed in the javadoc, and it is still included in the struts jar file.

However, I belive your question is about the <hml:errors> as opposed to the <html:messages> tags. Neither of these tags has been deprectated, and both can be used.

If you'll read the secions entitled "Displaying Messages" and "Displaying Error Messages" in this link you will find a good explanation of the differences, along with some examples of each.
[ May 23, 2007: Message edited by: Merrill Higginson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic