You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Miller <po...@gmail.com> on 2009/05/29 17:20:10 UTC
Struts 1.3.9 & tags-html-el
Greetings,
An application that runs just fine in Glassfish 2.1 sort-of craps out when
deployed on Weblogic 10.3.
Specifically, an exception is thrown upon accessing a page that uses
html:checkbox with an EL expression for the 'disabled' attribute:
11:04:29 ERROR 926:org.apache.struts.tiles.taglib.InsertTag -
ServletException in '/pages/xxx/xxx.jsp': Failed to compile JSP
/pages/xxx/xxx.jsp
xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
is not applicable for the arguments (String)
<html:checkbox property="xxxxxxxxxxxx"
value="${xxxxxxxxxxxxxxxx}" disabled="${disabledFlag}"
title="${titleMessage}" />
javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException:
Failed to compile JSP /pages/xxx/xxx.jsp
xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
is not applicable for the arguments (String)
<html:checkbox property="xxxxxxxxxxxx"
value="${xxxxxxxxxxxxxxxx}" disabled="${disabledFlag}"
title="${titleMessage}" />
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:252)
at
weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
at
weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
... snipped
${disabledFlag} evaluates to true. If I use 'true' instead of the EL
expression, it works.
I'm using the following taglib: <%@ taglib uri="
http://struts.apache.org/tags-html-el" prefix="html" %>.
If I use <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"
%> there is no problem (no 'el').
What is happening?!
Re: Struts 1.3.9 & tags-html-el
Posted by Paul Benedict <pb...@apache.org>.
Have you tried 1.3.10 ? If you still have a problem, please log it in
Struts JIRA so it can be fixed in 1.3.11.
Paul
On Fri, May 29, 2009 at 10:20 AM, David Miller <po...@gmail.com> wrote:
> Greetings,
>
> An application that runs just fine in Glassfish 2.1 sort-of craps out when
> deployed on Weblogic 10.3.
>
> Specifically, an exception is thrown upon accessing a page that uses
> html:checkbox with an EL expression for the 'disabled' attribute:
>
>
> 11:04:29 ERROR 926:org.apache.struts.tiles.taglib.InsertTag -
> ServletException in '/pages/xxx/xxx.jsp': Failed to compile JSP
> /pages/xxx/xxx.jsp
> xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
> is not applicable for the arguments (String)
> <html:checkbox property="xxxxxxxxxxxx"
> value="${xxxxxxxxxxxxxxxx}" disabled="${disabledFlag}"
> title="${titleMessage}" />
>
> javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException:
> Failed to compile JSP /pages/xxx/xxx.jsp
> xxx.jsp:390:102: The method setDisabled(boolean) in the type BaseHandlerTag
> is not applicable for the arguments (String)
> <html:checkbox property="xxxxxxxxxxxx"
> value="${xxxxxxxxxxxxxxxx}" disabled="${disabledFlag}"
> title="${titleMessage}" />
>
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:252)
> at
> weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
> at
> weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
> at
> weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
> ... snipped
>
>
>
> ${disabledFlag} evaluates to true. If I use 'true' instead of the EL
> expression, it works.
>
> I'm using the following taglib: <%@ taglib uri="
> http://struts.apache.org/tags-html-el" prefix="html" %>.
>
> If I use <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"
> %> there is no problem (no 'el').
>
> What is happening?!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org