Why not use foo.isValid() or is the format foo.valid something special with
respect to taglibs?
-Original Message-
From: Petter Karlström [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 7:30 AM
To: [EMAIL PROTECTED]
Subject: trouble with bean returning boolean
Hello all,
I have trouble getting a very simple bean (o'reilly book example) to
return boolean values. I call it with:
c: choose
c:when test=${foo.valid}
...
and the validation code in the bean looks like:
public boolean isValid(){
return true;
}
This generates the following error message:
org.apache.jasper.JasperException: javax.servlet.jsp.JspException: An
error occurred while evaluating custom action attribute test with
value ${foo.valid}: Unable to find a value for valid in object of
class foobar.FooBarBean using operator . (null)
Everything works fine with method getName which returns a String that
I can output with c:out.
anyone?
thanks
/Petter Karlström
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]