This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes ActionMessages & logic:messagesPresent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionMessages & logic:messagesPresent" Watch "ActionMessages & logic:messagesPresent" New topic

ActionMessages & logic:messagesPresent

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Hi there,
I can't display any error on the jsp. On a DispatchAction class I've the following method invoked by catch statements

and on my jsp

The logger correctly display my message but I still can't see anything.
Any suggestions?

trying to decode a woman mind....
Jaap v Hengstum

Joined: Apr 25, 2007
Posts: 6
When iterating over messages saved with saveErrors(...), the message attribute of the logic:messagesPresent and html:messages tags should be false.

If this attribute is true the tags will iterate over the messages saved with saveMessages(...).
[ May 17, 2007: Message edited by: Jaap v Hengstum ]
Nick Williamson
Ranch Hand

Joined: Jan 06, 2007
Posts: 73
you could also just use the following tag:

I agree. Here's the link:
subject: ActionMessages & logic:messagesPresent
It's not a secret anymore!