| news.software.ibm.com 2004-06-02, 4:49 pm |
| Hi
I am getting the following exception from a struts portlet when it
encounters extended characters.
sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
at java.io.InputStreamReader.convertInto(InputStreamReader.java:152)
at java.io.InputStreamReader.fill(InputStreamReader.java:201)
at java.io.InputStreamReader.read(InputStreamReader.java:264)
at java.io.Reader.read(Reader.java:116)
Problem occurs for static text or jsp, bean:message from properties file or
bean:write from value bean.
Have included following in JSPs
<%@ page contentType="text/html; charset=utf-8" %>
<% response.setContentType("text/html; charset=UTF-8"); %>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
struts-config.xml:
<controller processorClass="com.ibm.wps.portlets.struts.WpsRequestProcessor"
contentType="text/html; charset=utf-8" in
The portlet is deployed on WebSphere PortalServer 4.2 Extend, with WebSphere
4.05 AppServer.
Running the same struts application as a Web Applicaton in local test server
works as expected (WebSphere v4.0 Test Environment), WebSphere Application
Developer 5.1.
Has anyone seen this before, or have any ideas...
I have read on some other forums that for other app servers you can
precompile jsps passing encoding argument - is this possible with WSAD?
Doesn't seem to be an option, only able to set to Procompile in web.xml
extensions tab.
Regards
Michael
|