You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by luca <lb...@ais.it> on 2002/09/09 17:38:49 UTC

tomcat 4.1.10 & tag

Hello,
I've caught an exception with tomcat 4.1.10 and the tag <jsp:include
page="...">.
this is the code:

-------------------------------------------
<% boolean disabled=false; ...%>

<jsp:include page="simple-icon.jsp">
   <jsp:param name="icon" value="blocca"/>
   <jsp:param name="disabled" value="<%= disabled %>"/>
</jsp:include>
-------------------------------------------

and this is the error message:

-------------------------------------------
An error occurred at line: 567 in the jsp file: /frame-grid.jsp

Generated servlet error:
D:\Programmi\Tomcat
4.1\work\Standalone\localhost\webmodel\frame_0002dgrid_jsp.java:412: cannot
resolve symbol
symbol  : method encode  (boolean)
location: class java.net.URLEncoder
      JspRuntimeLibrary.include(request, response, "simple-icon.jsp" + "?" +
"icon=" + "blocca" + "&" + "disabled=" + java.net.URLEncoder.encode(
disabled ), out, false);
-------------------------------------------

Note that with Tomcat 4.04 this worked fine.

I'm using Tomcat 4.1.10 LE-jdk14 with jdk 1.4.0
Thanx for any suggests, luca



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: tomcat 4.1.10 & tag

Posted by Remy Maucherat <re...@apache.org>.
luca wrote:
> Hello,
> I've caught an exception with tomcat 4.1.10 and the tag <jsp:include
> page="...">.
> this is the code:
> 
> -------------------------------------------
> <% boolean disabled=false; ...%>
> 
> <jsp:include page="simple-icon.jsp">
>    <jsp:param name="icon" value="blocca"/>
>    <jsp:param name="disabled" value="<%= disabled %>"/>
> </jsp:include>
> -------------------------------------------
> 
> and this is the error message:
> 
> -------------------------------------------
> An error occurred at line: 567 in the jsp file: /frame-grid.jsp
> 
> Generated servlet error:
> D:\Programmi\Tomcat
> 4.1\work\Standalone\localhost\webmodel\frame_0002dgrid_jsp.java:412: cannot
> resolve symbol
> symbol  : method encode  (boolean)
> location: class java.net.URLEncoder
>       JspRuntimeLibrary.include(request, response, "simple-icon.jsp" + "?" +
> "icon=" + "blocca" + "&" + "disabled=" + java.net.URLEncoder.encode(
> disabled ), out, false);
> -------------------------------------------
> 
> Note that with Tomcat 4.04 this worked fine.
> 
> I'm using Tomcat 4.1.10 LE-jdk14 with jdk 1.4.0

Yes, this is a known issue. It will be fixed in the next release.

Remy


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>