title: Cannot read Boolean property in JSP EL
body: <p>If an object property is declared as of type Boolean (not primitive boolean) then there seem to be a problem in EL recognizing it!</p>
  
  <p>Say you have the following object</p>
  
  <pre><code>class Case{
       private Boolean  valid;
  
       public Boolean isValid(){
           return this.valid;
       }
  
       public void setValid(Boolean val){
           this.valid = val;
       }
  }
  </code></pre>
  
  <p>Say we put an object of type Case in the request under the name "case", then I try this in the JSP:</p>
  
  <pre><code>&lt;td&gt;Object is ${case.valid ? "Valid":"Invalid"} &lt;/td&gt;
  </code></pre>
  
  <p>This gives me error "valid" is not a property of object Case! If I change valid from Boolean to primitive boolean it works!</p>
  
  <p>Is this a known problem with Boolean types in EL that they are not recognized as boolean but as Java "normal" objects? What is the proper way to handle this?</p>
  
  <p>Thanks</p>