It might be worthwhile doublechecking the "input" attribute in your xml
mapping for the request URI you're handling.
If there is no input page specified, the ActionServlet will not know which
page to return control to in order to display the errors it receives from
the validate() method.
HTH
Dave
-----Original Message-----
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2001 10:56
To: [EMAIL PROTECTED]
Subject: Displaying errors when validating forms (ActionErrors)
Hallo,
I have a problem to display ActionErrors. I use the validate-Method to
validate forms, like that:
------------------------------
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
ActionErrors errors = new ActionErrors();
if (iBenutzer == null || iBenutzer.length() < 1) {
errors.add("benutzungsname", new
ActionError("error.login.benutzername.required"));
}}
------------------------------
But when I want to display that error, I can't see anything. Why?????
* errors.header=<ul>
errors.footer=</ul>
error.login.benutzername.required=that is an error ...
is in the property-file! That property-file is available (set in
web.xml)!
* the JSP contains:
<html:errors/>
<html:errors property="benutzungsname"/>
Who can help me?!
What is wrong??
************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.
http://www.capco.com
***********************************************************************