This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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 :-)
 
GeeCON Prague 2014
 
subject: Checking if messages exist