RE: trouble with bean returning boolean

2003-01-21 Thread Petter Karlström
For the archives, a reboot of Tomcat solved this problem. Still a bit 
strange, since I checked for caching or similar by modifying other 
pieces of code. No matter, lesson learned: reboot reboot reboot.

/Petter

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: trouble with bean returning boolean

2003-01-19 Thread Petter Karlström
At 07:30 2003-01-17 -0800, you wrote:

Why not use foo.isValid() or is the format foo.valid something special with
respect to taglibs?


It's a convention used in beans. Methods called isSomething should be 
recognized as booleans by something in the jsp code.

/Petter
  


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: trouble with bean returning boolean

2003-01-17 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
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]