title: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String in Struts' logic:equal tag
body: <p>I have an error when I want to acces my JSP page.</p>
  <p><strong>My bean:</strong></p>
  <pre><code>public class BeChildren implements Serializable
  {
  ...
   private String isFilledChildren;
  ....
  
      /**
       * @param isFilledChildrenthe isFilledChildrento set
       */
      public void setIsFilledChildren( String isFilledChildren)
      {
          this.isFilledChildren= isFilledChildren;
      }
  
  
  
      public String getIsFilledChildren( )
      {
          if ( getNom( ) != null )
          {
              return &quot;true&quot;;
          } else
          {
              return &quot;false&quot;;
          }
      }
  ...
  }
  </code></pre>
  <p><strong>Error:</strong></p>
  <pre><code>28/07/17-09:13:10,670 ERROR org.apache.struts.taglib.tiles.InsertTag - ServletException in '/pages/sub/dir/detail/body.jsp': javax.servlet.jsp.JspException: Invalid argument looking up property: &quot;bean.enfant.isFilledChildren&quot; of bean: &quot;sub/dir/detail&quot;
  org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Invalid argument looking up property: &quot;bean.enfant.isFilledChildren&quot; of bean: &quot;sub/dir/detail&quot;
  
  javax.servlet.jsp.JspException: Invalid argument looking up property: &quot;bean.children.isFilledChildren&quot; of bean: &quot;sub/dir/detail&quot;
  
  java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
  </code></pre>
  <p><strong>My JSP:</strong></p>
  <p><a href="https://pastebin.com/QmgtXBqA" rel="nofollow noreferrer">https://pastebin.com/QmgtXBqA</a></p>
  <pre><code>...
  &lt;html:form action=&quot;/page/sub/dir/detail.do&quot;&gt;
  &lt;html:hidden name=&quot;sub/dir/detail&quot; property=&quot;modeCreation&quot; styleId=&quot;modeCreation&quot;/&gt;
  &lt;html:hidden name=&quot;sub/dir/detail&quot; property=&quot;bean.enfant.isFilledChildren&quot;/&gt;
  ....
  &lt;logic:equal name=&quot;sub/dir/detail&quot; property=&quot;bean.enfant.isFilledChildren&quot; value=&quot;true&quot;&gt;
      .....
  &lt;/logic:equal&gt;
  ...
  &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
      var f = document.forms[0];
  
      function init(){    
          var isFilledChildren = document.forms[0].elements[&quot;bean.enfant.isFilledChildren&quot;];
          ....
          if (isFilledChildren!=null &amp;&amp; &quot;true&quot;==isFilledChildren.value){
          ...
          }
      }
  ....
  </code></pre>
  <p>What is wrong ?</p>