I think it should work too.  Perhaps changing the isValid to getValid would
fix it.  What error are you getting?

> -----Original Message-----
> From: Leif Hanack [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: JSTL and boolean Attributes ???
>
>
> Hello,
>
> i want to access a boolean attribute through JSTL.
>
> If my class looks like:
>
> class Checker {
>       private boolean m_isValid = false;
>
>       public void setValid( boolean p_isValid ) {
>               m_isValid = p_isValid;
>       }
>
>       public boolean isValid() {
>               return m_isValid;
>       }
> }
>
> it seems that JSTL can not access my field:
>
> <c:out value="${checker.valid}"/>
>
> Correct? If so, why can't JSTL handle that?
>
> Thanks in advance, Leif
>
> --
> 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]>

Reply via email to