PQ56912: CHANGE WEBSPHERE BEHAVIOUR TO FORWARD TO DEFINED ERROR PAGE (NOT INCLUDE) WHEN POSSIBLE. | |||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||
APAR status Closed as program error. Error description HttpResponse.sendRedirect is implemented by setting the HTTP "Location" header to a new URL. For the current version of WebSphere 4.0 error pages are included resources since they are invoked by the servlet container via RequestDispatcher.include. Since included resources are prohibited from setting headers an page that does so will not behave as expected. We can change th behavior of WebSphere to prefer forwarding, but the servlet cont will have to resort to using include in some cases. For example the response is already committed.Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server users who have * * error resources/pages that need to set * * headers or perform other tasks that are not * * possible for an included resource. * **************************************************************** * PROBLEM DESCRIPTION: WebSphere Application Server 4.0.2 * * invokes error pages via include * * (RequestDispatcher.include) rather * * than via forward. * **************************************************************** * RECOMMENDATION: * **************************************************************** If possible WebSphere should invoke error pages (resources designed to handle errors and/or send related messages to attached clients) via RequestDispathcer.forward(). Currently the servlet container/engine will always invoke these resources using an include. The result is that error pages are included resources and are probibited from performing certain operations. It must be understod this code change does not guarantee error resources will always be invoked by forward. There are situations where include is the only option.Problem conclusion Changed the implementation of sendError to forward to the error page if possible, otherwise an include is performed.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 > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ56912
IBM Group: Software Group
Modified date: Jun 25, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.