This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes Checking if messages exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Checking if messages exist" Watch "Checking if messages exist" New topic
Author

Checking if messages exist

Raghu Marpalli
Greenhorn

Joined: Jul 30, 2006
Posts: 6
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

Joined: May 24, 2003
Posts: 425
struts-logic tag library has messagesNotPresent and messagePresent tags. You can use them to see.
Raghu Marpalli
Greenhorn

Joined: Jul 30, 2006
Posts: 6
Thanks that was it :-)
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Checking if messages exist
 
jQuery in Action, 3rd edition