On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote:

> Has anyone run into this problem? When I try to run the struts-example page
> I get the following error:
> 
> org.apache.jasper.JasperException: Unable to compile class for
> JSP/home/carol/web/enhydra3.1/work/Struts/_0002findex_0002ejspindex_jsp_0.java:72:
> 
> Incompatible type for method. Can't convert java.lang.String to boolean.
>                 _jspx_th_html_html_11.setLocale("true");
> 
> 
> The java code generated which causes this error looks like:
> 
>                 org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_11
> = new org.apache.struts.taglib.html.HtmlTag();
>                 _jspx_th_html_html_11.setPageContext(pageContext);
>                 _jspx_th_html_html_11.setParent(null);
>                 _jspx_th_html_html_11.setLocale("true");
> 
> I've only got one version of struts.jar, the one that was packed in
> struts-example.war. I'm running struts using Enhydra 3.1 on RedHat 7.1.
> 
> Renee Petris
> [EMAIL PROTECTED]
> 
> 

It looks like Enhydra 3.1 might be using a very old version of Jasper
(perhaps from Tomcat 3.1) that did not correctly deal with custom tag
properties that are booleans.  As you might expect, the last generated
line above should really be:

  _jspx_th_html_html_11.setLocale(true);

instead.

Craig


Reply via email to