aspose file tools*
The moose likes Struts and the fly likes Question about html:messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Question about html:messages" Watch "Question about html:messages" New topic
Author

Question about html:messages

Krishna Attravanam
Greenhorn

Joined: Oct 21, 2004
Posts: 16
Hi i have a situation where I need to design an error page (intelligent one)

So the requirement says

If I populate the ActionMessages class with the error message and use SaveMessages() in one of the action, the error page should be smart enough to identify that there is an ActionMessage (by using html:messages id=msg message=true or something like that) and print the error in the JSP error page.

If there is no error message (populated in the ActionMessages) then display a generic error message.

How to do this ???

Thanks
Krishna
 
Consider Paul's rocket mass heater.
 
subject: Question about html:messages