Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionMessages & logic:messagesPresent" Watch "ActionMessages & logic:messagesPresent" New topic
Author

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
Greenhorn

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:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ActionMessages & logic:messagesPresent
 
Similar Threads
Issues with <html:messages >
Re, Handling Error using ActionMessages
Handling Messages (v1.2.9)
bean 'message' not found for html:messages tag
ActionMessages?????????