Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking if messages exist

 
Raghu Marpalli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to display <html:messages> on my screen. I want to perform a check to see if there are messages, how can I accomplish the same?

<TAG if message exist>
<html:messages id="msg" message="true">
<bean:write name="msg"/>
<br>
</html:messages>
</TAG>

Thanks much.
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
struts-logic tag library has messagesNotPresent and messagePresent tags. You can use them to see.
 
Raghu Marpalli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that was it :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic