You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <ne...@husted.com> on 2001/01/17 20:01:13 UTC

Re: Error Messages don't print

The other easy thing to forget is calling "saveErrors(request,
errors);" after you've queued them all.

*********** REPLY SEPARATOR  ***********

On 1/17/2001 at 7:52 PM Juergen Ebert wrote:

Had the same problem today. Just forgot to include the taglib
declaration in
the JSP file ...

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

Juergen

-----Ursprüngliche Nachricht-----
Von: Hee Meng, Poh [mailto:hmpoh@mbox.ncs.com.sg]
Gesendet: Mittwoch, 17. Januar 2001 17:38
An: struts-user@jakarta.apache.org
Betreff: Re: Auto Form Validation Not Done?


Hi,

U r right. Just found this too. But still having problem of
<html:errors/>
not producing my error messages. Digging
further...

Regards
----- Original Message -----
From: "Johan Compagner" <jc...@j-com.nl>
To: <st...@jakarta.apache.org>
Sent: Wednesday, January 17, 2001 7:08 PM
Subject: RE: Auto Form Validation Not Done?


> In the struts config file you specify if the validate must be called
or
not:
>
>     <action    path="/action"
>                type="package.FormClass"
>                name="formName"
>               scope="session"
>            validate="true">
> ^^^^^^^^^^^^^^^^
>
> Maybe you have specified false?
>
> johan
>
>
> > -----Original Message-----
> > From: Hee Meng, Poh [mailto:hmpoh@mbox.ncs.com.sg]
> > Sent: Wednesday, January 17, 2001 10:51 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Auto Form Validation Not Done?
> >
> >
> > Hi,
> >
> > Anyone can verify if auto form validation is working in
struts@16012001?
> > Implemented the method
> >
> > public ActionErrors validate(ActionMapping mapping,
> >                                       HttpServletRequest request)
> >
> >
> > in my action form class but can't see it being executed...
> >
> > Regards
> >
> >




Re: Error Messages don't print

Posted by "Hee Meng, Poh" <hm...@mbox.ncs.com.sg>.
Hi,

Problem solved by recopying the TLDs and struts.jar from struts-example.war.
Seems to be incompatibility between TLDs and tag classes.

Regards
----- Original Message -----
From: "Hee Meng, Poh" <hm...@mbox.ncs.com.sg>
To: <st...@jakarta.apache.org>
Sent: Thursday, January 18, 2001 8:49 AM
Subject: Re: Error Messages don't print


Hi,

Still can't see error at this point.

Okay, am I right to say that u only need to call saveErrors() if u decide to
do your own validation; the auto-validation only requires an implementation
of the validate() method which returns an ActionErrors instance?

Also, shld we now use struts.tld or struts-html.tld when it comes to error
reporting, as
in <struts:errors/> or <html:errors/> coz I thought I saw <struts:errors/>
in logon.jsp and
<html:errors/> registration.jsp respectively, both from the struts-example.

Regards
----- Original Message -----
From: "Ted Husted" <ne...@husted.com>
To: "Struts List" <st...@jakarta.apache.org>
Sent: Thursday, January 18, 2001 3:01 AM
Subject: Re: Error Messages don't print


The other easy thing to forget is calling "saveErrors(request,
errors);" after you've queued them all.

*********** REPLY SEPARATOR  ***********

On 1/17/2001 at 7:52 PM Juergen Ebert wrote:

Had the same problem today. Just forgot to include the taglib
declaration in
the JSP file ...

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

Juergen

-----Ursprüngliche Nachricht-----
Von: Hee Meng, Poh [mailto:hmpoh@mbox.ncs.com.sg]
Gesendet: Mittwoch, 17. Januar 2001 17:38
An: struts-user@jakarta.apache.org
Betreff: Re: Auto Form Validation Not Done?


Hi,

U r right. Just found this too. But still having problem of
<html:errors/>
not producing my error messages. Digging
further...

Regards
----- Original Message -----
From: "Johan Compagner" <jc...@j-com.nl>
To: <st...@jakarta.apache.org>
Sent: Wednesday, January 17, 2001 7:08 PM
Subject: RE: Auto Form Validation Not Done?


> In the struts config file you specify if the validate must be called
or
not:
>
>     <action    path="/action"
>                type="package.FormClass"
>                name="formName"
>               scope="session"
>            validate="true">
> ^^^^^^^^^^^^^^^^
>
> Maybe you have specified false?
>
> johan
>
>
> > -----Original Message-----
> > From: Hee Meng, Poh [mailto:hmpoh@mbox.ncs.com.sg]
> > Sent: Wednesday, January 17, 2001 10:51 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Auto Form Validation Not Done?
> >
> >
> > Hi,
> >
> > Anyone can verify if auto form validation is working in
struts@16012001?
> > Implemented the method
> >
> > public ActionErrors validate(ActionMapping mapping,
> >                                       HttpServletRequest request)
> >
> >
> > in my action form class but can't see it being executed...
> >
> > Regards
> >
> >




Re: Error Messages don't print

Posted by "Hee Meng, Poh" <hm...@mbox.ncs.com.sg>.
Hi,

Still can't see error at this point.

Okay, am I right to say that u only need to call saveErrors() if u decide to
do your own validation; the auto-validation only requires an implementation
of the validate() method which returns an ActionErrors instance?

Also, shld we now use struts.tld or struts-html.tld when it comes to error
reporting, as
in <struts:errors/> or <html:errors/> coz I thought I saw <struts:errors/>
in logon.jsp and
<html:errors/> registration.jsp respectively, both from the struts-example.

Regards
----- Original Message -----
From: "Ted Husted" <ne...@husted.com>
To: "Struts List" <st...@jakarta.apache.org>
Sent: Thursday, January 18, 2001 3:01 AM
Subject: Re: Error Messages don't print


The other easy thing to forget is calling "saveErrors(request,
errors);" after you've queued them all.

*********** REPLY SEPARATOR  ***********

On 1/17/2001 at 7:52 PM Juergen Ebert wrote:

Had the same problem today. Just forgot to include the taglib
declaration in
the JSP file ...

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

Juergen

-----Ursprüngliche Nachricht-----
Von: Hee Meng, Poh [mailto:hmpoh@mbox.ncs.com.sg]
Gesendet: Mittwoch, 17. Januar 2001 17:38
An: struts-user@jakarta.apache.org
Betreff: Re: Auto Form Validation Not Done?


Hi,

U r right. Just found this too. But still having problem of
<html:errors/>
not producing my error messages. Digging
further...

Regards
----- Original Message -----
From: "Johan Compagner" <jc...@j-com.nl>
To: <st...@jakarta.apache.org>
Sent: Wednesday, January 17, 2001 7:08 PM
Subject: RE: Auto Form Validation Not Done?


> In the struts config file you specify if the validate must be called
or
not:
>
>     <action    path="/action"
>                type="package.FormClass"
>                name="formName"
>               scope="session"
>            validate="true">
> ^^^^^^^^^^^^^^^^
>
> Maybe you have specified false?
>
> johan
>
>
> > -----Original Message-----
> > From: Hee Meng, Poh [mailto:hmpoh@mbox.ncs.com.sg]
> > Sent: Wednesday, January 17, 2001 10:51 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Auto Form Validation Not Done?
> >
> >
> > Hi,
> >
> > Anyone can verify if auto form validation is working in
struts@16012001?
> > Implemented the method
> >
> > public ActionErrors validate(ActionMapping mapping,
> >                                       HttpServletRequest request)
> >
> >
> > in my action form class but can't see it being executed...
> >
> > Regards
> >
> >