the correct way is to define the error in ur properties file. errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("my.error")); Message in Application.resources my.error=my error here -Tim -----Original Message----- From: James Prance [mailto:JamesPrance@hotmail.com] Sent: Tuesday, February 18, 2003 10:31 AM To: struts-user@jakarta.apache.org Subject: Newbie Question: ActionErrors. 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" %> <bean:message key="login.title"/> Messages in Application.resources errors.header=

Validation Error

You must correct the following error(s) before proceeding:
--------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org