tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Thrysøe <>
Subject JSP Include and URL encoding
Date Fri, 02 Apr 2004 08:37:39 GMT

I'm having problems including a JSP page from another JSP page using 
parameters with special characters.

I looked through the archives, but couldn't find anything about this issue.

I can encode a string, and the result is correct

   URLEncoder.encode("blåbærgrød", "ISO-8859-1")

But if I make an include with the same value

   <jsp:include page="bar.jsp" flush="true">
     <jsp:param name="word" value="blåbærgrød" />

The special characters are replaced with question marks '?' (%3F). So 
the query string seen from bar.jsp becomes


In fact the generated java code for the main jsp file contains this 
string also. So the problem is already during parsing or servlet generation.

The requests character encoding is null. The page directive's 
pageEncoding attribute is "ISO-8859-1" (or not present - doesn't make a 

The user properties and user.language are 'US' and 'en' 
respectively. Might that be the cause?

The problem is on Tomcat 4.1.29 on Linux.

By the way: I still haven't figured out whether Tomcat 4.1.30 is 
supposed to be able to run on JDK 1.3.1.

Any help appreciated,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message