PQ74334: CUSTOMER HAS A JSP THAT FAILS TO COMPILE IN 5.0 BUT WORKS IN 3.5AND 4.0. THE TSX:GETPROPERTY TAGS WERE CHANGED IN 5.0 | |||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description Customer has a jsp that was originally written for 3.5.6 that fails to compile under was5.0 as follows. He uses <tsx:dbquery> tag to run an SQL select statement. <tsx:dbquery id="qs" connect nection="conn" select * from <%=datalib%>.UPSUSRP </tsx;dbuery> He then use the <tsx:repeat> as follows: <tsx:repeat start="0" <tsx:getProperty name="qs" property="AMRHCR" /> <% String abc = This fails on the line "String abc = qs.getValue("AMJET2", 0);" with a class variable qs not defined message. This works in all but 5.0. I was informed the jsp tags were changed.Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server users of the * * JSP DBQuery tag. * **************************************************************** * PROBLEM DESCRIPTION: The JSP DBQuery tag is treated as a * * custom tag in V5. The query result * * could not be referenced in the page * * because the variable was not declared. * * The result is a java compilation error * * when the jsp is translated. * **************************************************************** * RECOMMENDATION: * **************************************************************** The DBQueryTag did not declare a reference variable to query the result. This causes a compilation error when the client is trying to use a tagid as a reference to the result.Problem conclusion A new class DBQueryTagExtraInfo has been introduced to declare the query result using the variable AT_END. The file tsx.tld was updated to reference the new class.Temporary fix Added an AT_END varaiable for DBQuerey tag to allow query result to be accessed.Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 00A
Software edition:
Reference #: PQ74334
IBM Group: Software Group
Modified date: Jul 28, 2003
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.