James Cook wrote: > Does anyone have any good ideas for determining the presence of field or > action errors using only JSTL? > > <c:if test="${fieldErrors != null}"> > > Doesn't work, because a new HashMap is created on the fly. > > <c:if test="${fieldErrors.size > 0}"> > > Doesn't work, because it would expect a getSize() function on the Map, > when the function is size().
In JSTL 1.1 (JSP 2.0) you can use: <c:if test="${fn:length(fieldErrors) gt 0}"> Chris ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork