tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petter Karlström <>
Subject trouble with bean returning boolean
Date Fri, 17 Jan 2003 14:30:01 GMT
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.



/Petter Karlström

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message