Request.getParameter returning the wrong value

My web application generates a list of links for a user to click on.

The link looks like this: showCa.jsp?id=2345

The showCa.jsp page uses the id to populate a form on the page.

The problem I am have is when a user clicks the link showCa.jsp?id=2345

The request.getParameter("id")

is returning the wrong id!

I have never seen behavior like this before. This page has been working in production for a long time. I reproduced the error, and it only seems to be happening when there are multiple users logged in.On the showCa.jsp page I printed out the query string and the value of id and got this:

queryString : ?id=2345

id : 2226

Has anyone seen anything like this before? I have been coding JSP for 3 years now and I have never seen behavior like this.This is occurring on Tomcat 4.1/ JDK 1.4

I greatly appreciate any suggestions that you may have.

Thank you,

Al

[969 byte] By [alzoida] at [2007-11-27 3:41:46]
# 1
Did u have and id=2226 stated any where? I mean u have any field with name = id any wherE?
mshanua at 2007-7-12 8:45:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
i think you have mention wrong "name" field corresponding to input type tagit should like thisin your previous page<input type="text" name="id" size="20">and in next jsp page you can get "id" value by string id=request.getParameter("id");
chocalatea at 2007-7-12 8:45:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

I am not submitting this though a form so the 'name' is hard coded when I build the URLs..

The list of links is built from database data.

I end up with something like this for each URL

showCa.jsp?id=123

showCa.jsp?id=133

showCa.jsp?id=2343

As an example, when the user clicks the third link the reuqest.getQueryString will return:

?id=2343

but the request.getParmater("id") will return:

2333

The name of the variable that i pass to request.getParameter is right on the showCa.jsp page

alzoida at 2007-7-12 8:45:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...