Hi there
Like most of you, I am using the <html:errors>-tag to show errors on the JSP page. My
problem is, that I don't get any message on the JSP page. I do the following check
before I return to the form:
if (!errors.empty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}
When I check the values, "errors.empty()" it is set to false, and the value for
"errors.size()" is 1.
On the JSP, I am using a template with header, main, and footer. In the header I
declared this:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
....
<!----- Handling the Errors ----->
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="18">
<tr>
<font class="error">
<html:errors/>
</font>
</tr>
</table>
Any comments would be appreciated.
Marcel