File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Ways to display error messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ways to display error messages" Watch "Ways to display error messages" New topic
Author

Ways to display error messages

Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
Why this is NOT working?


While this is working?


SCJP with 98% by...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Supplying a body for most <hml:xxx> tags will usually assign whatever is in the body as the value attribute. It will not, however assign the body to the property attribute.


Merrill
Consultant, Sima Solutions
Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
I need to use the "with body" approach since i need to print some text inside the body and not just the actual message.

How will I do that?

Thanks!
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Use <html:messages> instead of <html:errors>. See the heading Displaying Messages in this link for more information on how to use the tag as well as some examples.
Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
Thanks for the link Merrill. I got it.
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
Nice name.

I didn't know the former president is into Java programming too.


There's so much to learn in this industry, and not everybody has the necessary interest.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ways to display error messages