tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PELOQUIN,JEFFREY (HP-Boise,ex1)" <jeffrey.peloq...@hp.com>
Subject RE: trouble with bean returning boolean
Date Fri, 17 Jan 2003 15:30:06 GMT
Why not use foo.isValid() or is the format foo.valid something special with
respect to taglibs?

-----Original Message-----
From: Petter Karlström [mailto:petter.karlstrom@ling.gu.se]
Sent: Friday, January 17, 2003 7:30 AM
To: tomcat-user@jakarta.apache.org
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message