struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Prance" <JamesPra...@hotmail.com>
Subject Newbie Question: ActionErrors.
Date Tue, 18 Feb 2003 15:31:08 GMT
Anyone tell me why the error message specified in the "
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("my error here")); "
code in my Action Servlet doesnt appear on the jsp page. The header and
footer appear, but the error message does not.. what have I missed?

Code in  ActionServlet -
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("my error here"));

Code in JSP -

<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<html>

<head>

<title>

  <bean:message key="login.title"/>

</title>

</head>

<body bgcolor="#FFFFFF">

<html:errors/>



Messages in Application.resources

errors.header=<h3><font color="red"> Validation Error</font></h3>
You must
correct the following error(s) before proceeding:<ul>

errors.footer=</ul><hr>





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message