My bad.
That was some code I was trying just to see what would happen. This line
gets the same results and is the one I started with. Promise.
errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionError(
"errors.physical.takeover"));
"Jim Barrows"
<[EMAIL PROTECTED]
m> To
"Struts Users Mailing List"
08/18/2004 02:54 <[EMAIL PROTECTED]>
PM cc
Subject
Please respond to RE: Validation plug-in & Websphere
"Struts Users Studio 5.0.1
Mailing List"
<[EMAIL PROTECTED]
he.org>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 18, 2004 11:38 AM
> To: Struts Users Mailing List
> Subject: RE: Validation plug-in & Websphere Studio 5.0.1
<snip> bunch of code</snip>
> if(physicalAudit == true){
> if(takeoverAudit == true){
> errors.add("Test add", new ActionError(
> "errors.physical.takeover"));
from the javadoc:
public void add(java.lang.String property,
ActionError error)
property - Property name (or ActionErrors.GLOBAL_ERROR)
I don't think your property name is not a valid property name. try
test.add, testAdd or something similar.
Or, for testing this out try GLOBABL_ERROR as defined above.
> }
> }
> if(errors.isEmpty()){
> return null;
> }else{
> return errors;
> }
> }
>
>
>
>
>
>
>
> "Jim Barrows"
>
> <[EMAIL PROTECTED]
>
> m>
> To
> "Struts Users Mailing
> List"
> 08/18/2004 01:58
> <[EMAIL PROTECTED]>
> PM
> cc
>
>
>
> Subject
> Please respond to RE: Validation plug-in
> & Websphere
> "Struts Users Studio 5.0.1
>
> Mailing List"
>
> <[EMAIL PROTECTED]
>
> he.org>
>
>
>
>
>
>
>
>
>
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 18, 2004 10:49 AM
> > To: [EMAIL PROTECTED]
> > Subject: Validation plug-in & Websphere Studio 5.0.1
> >
> >
> >
> >
> >
> >
> > I'm new to Struts and couldn't find anything about this on
> > the archive so
> > please bear with me if I'm repeating a question.
> >
> > I'm developing a Struts 1.1 web app and trying to implement
> > the validation
> > plug-in. Things went well as long as I was only using the
> > validations that
> > came with the plug-in. When I try to add my own custom
> validation by
> > overriding the validate() method of the form the server
> > crashes with an
> > IllegalStateException after dozens of loops in the validate()
> > method. The
> > statement causing the problem is the errors.add() statement.
> > Without it
> > there is no problem.
> >
> > If anyone can help I'd be grateful. I can provide more
> > details from the
> > log if needed.
>
> How about some code? Log is cool.... but code is better :)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]