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

 A fix is available

5.0.2: WebSphere Application Server Version 5.0 Fix Pack 2 (Version 5.0.2)



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 information
APAR number PQ74334
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00A
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-05-19
Closed date 2003-07-28
Last modified date 2003-07-28

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
JSPTAG          

Publications Referenced

Fix information

Applicable component levels
R003 PSY    UP
R00A PSY    UP
R00H PSY    UP
R00I PSY    UP
R00P PSY    UP
R00S PSY    UP
R00W PSY    UP


Document Information


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