PQ68641: INVALID DATA DISPLAYED AT THE BROWSER WHEN USING THE JSP INCLUDETAG WITH WEBSPHERE V4.01 ON OS/390 | |||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description Customer has a jsp that includes the following code: <jsp:include page="pageInclude.inc" /> where pageInclude.inc contains a title line to be displayed at the browser. When pageInclude is ASCII, the customer sees garbage (binary data) displayed at the browser. When pageInclude is EBCDIC, it displays correctly. Because '.inc' is not a defined type, pageInclude.inc is being read by SimpleFileServlet, which uses the EBCDIC charset. SimpleFileServlet should use ASCII encoding to read this file.Local fix There are three possible workarounds for this problem: . 1) Use the Include directive instead of jsp:include. For example: <%@ include file="pageInclude.inc" %> . 2) Use a suffix of '.jsp' on the included part. This will cause the part to be read by the JSP processor (which uses the ASCII charset) instead of SimpleFileServlet. . 3) Change the part to be included to EBCDIC.Problem summary **************************************************************** * USERS AFFECTED: All users of WebSphere Application Server * * V4.0.1 for z/OS and OS/390. * **************************************************************** * PROBLEM DESCRIPTION: Customer has a JSP file that contains: * * <jsp:include page="pageInclude.inc" /> * * * * When JSP was executed, pageInclude.inc * * file content displayed was unreadable. * **************************************************************** * RECOMMENDATION: * **************************************************************** Because of the file extension, pageInclude.inc file was served by the SimpleFileServlet. A InputStreamReader was incorrectly constructed with pageInclude.inc file by SimpleFileServlet using the default character encoding (EBCDIC, Java system property file.encoding for z/OS and OS/390). Therefore, unreadable characters were displayed on browser.Problem conclusion SimpleFileServlet code in the WebSphere Application Server Web container code has been changed to construct InputStreamReader correctly using character encoding ISO-8859-1. APAR PQ68461 is associated with SERVICE LEVEL W401407 of WebSphere Application Server V4.0.1 for z/OS and OS/390.Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ68641
IBM Group: Software Group
Modified date: Feb 5, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.