*
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
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking if messages exist
 
Similar Threads
Cannot display ActionMessages
ActionMessages causing me great distress
ActionMessages not found under 'messages'
Handling Messages (v1.2.9)
ActionMessages?????????