Bug 2786 - req:parameterValues fails under JRun Server
Summary: req:parameterValues fails under JRun Server
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Request Taglib (show other bugs)
Version: 1.0
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-25 09:19 UTC by Harvey Kandola
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harvey Kandola 2001-07-25 09:19:22 UTC
Win2K Pro
JRun 3.1
JDK 1.3.0-01

The problem is that req:parameterValues tag only returns all values first time 
round. Subsequent calls just return the first value (when it should return 
multiple values).

Do the following to reproduce the error:

1. Install request-examples.war on JRun 3.1
2. Access the index.html page.
3. Press the SUBMIT button.
4. When the request.jsp page shows up you will see that it correctly shows 
multiple values for parameter "test3":

------------------------------------------------------------------

GET or POST Parameters received with request for test3:

 
   test3 = This is a third test
 
   test3 = Third test with multiple values
 
------------------------------------------------------------------

5. Go back to the index.html page.
6. Press the SUBMIT button again.
7. When the request.jsp page shows up again, you will see that it does not show 
multiple values for parameter "test3":

------------------------------------------------------------------

GET or POST Parameters received with request for test3:

 
   test3 = This is a third test
 
------------------------------------------------------------------

Is this a problem with JRun 3.1 or the taglib?

The taglib code that executes is...

GET or POST Parameters received with request for test3:
<req:parameters id="param" name="test3">
 <req:parameterValues id="pv">
   <jsp:getProperty name="param" property="name"/> = <jsp:getProperty name="pv" 
property="value"/>
 </req:parameterValues>
</req:parameters>

Regards,

Harvey.
Comment 1 Julian Skeels 2002-01-24 16:25:12 UTC
I have exactly the same problem running under Oracle9iAS (1.0.2.2.1) Containers 
for J2EE (which is the orion server).

The tags work fine the first time the JSP is compiled, or the app server is 
restarted.  However, next time you access the page, only the first value is 
shown
Comment 2 Glenn Nielsen 2002-04-04 19:10:20 UTC
Thanks for reporting this.  The problem had to do with instance variables
which were not being reset in the doStart method.  This would cause problems
in JSP containers that pool or recycle JSP custom tag instances.
This fix should be available for download after the next nightly build.