This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Checking if messages exist  RSS feed

 
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
Boost this thread!