A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
How to Render All and Individual Errors in One Page
Joined: Jan 28, 2004
Nov 25, 2004 04:44:00
need to report (1) all errors in one place and (2) individual form property's error at their specific location using <html:errors/>. I know a common way is first to add these into resource bundle:
errors.header=<p>Errors Encountered</p><font color=red><ol>
Then, I put one <html:errors/> at the top for list of all errors and <html:errors property="propertyname"/> next to each input element for the corresponding property.
Now with this approach, I have a problem where the headers/prefix got printed in my individual error list, too. I just want it be printed at the all error list at the top.
Is there any way to print the headers/prefix for <html:errors/> while leaving them out at each specific <html:errors property="..."/> tag?
Joined: Sep 21, 2003
Nov 25, 2004 08:20:00
u dont have such an option with
1.1 but after the release of struts 1.2 they had provided all these header,footer,prefix and all as the attributes for the error tag
I agree. Here's the link:
subject: How to Render All and Individual Errors in One Page
doesnt display struts tags in normal html form
need help for critical path analysis in java
CSS navigation Menu
Confused on validate() method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015