Fred Lo wrote:
> Hello,
>
> I have deployed the struts-test of 1.0beta to iplanet 6.0 sp2. But at
> some of test page I have encountered errors, for example:
>
> [05/Mar/2001 02:33:26:8] error: Exception: SERVLET-compile_failed: Failed in
> compiling template: /struts-vg/bean-include.jsp, javac error:
>
>d:\iplanet\ias6\ias\APPS\struts-vg\struts-vg\WEB-INF\compiled_jsp\jsp\APPS\struts_vg\bean_include.java:78:
> Incompatible type for method. Can't convert java.lang.String to boolean.
> ((org.apache.struts.taglib.bean.WriteTag)_JSP__1).setFilter("true");
> ^
> 1 error
>
This is a bug found in several current servlet containers, apparently
including iPlanet 6.0 sp2.
The "filter" property of the <bean:write> tag is a boolean, rather than
a String. In such cases, the
container is required to perform the data type conversions specified in
Table 2-4 of the JSP 1.1
specification. In this particular case, it should convert the string
"true" to a boolean true value, and pass
that instead.
The requirement for this conversion was not clearly spelled out in the
JSP 1.1 specification itself, but it
was clarified in an errata published last April. See "Issue 7" at:
http://java.sun.com/products/jsp/errata_1_1_a_042800.html
This bug should be reported to iPlanet's technical support services.
Craig McClanahan