This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

request parameter somehow cached?

May 24th, 2006, 05:12 AM

I have a simple page that deletes a row from my database, this controller is mapped to /delete.htm and is used e.g in the form /delete.html?del=22 where 22 is an example identifier of a persisted object.

The first time the url is used, it works fine, it deletes the object with id 22 from the db and returns me to my list of rows. However if i try and then call e.g /delete.html?del=34 I get a Hibernate exception that row *22* doesn't exist.

Why is it picking up the request parameter from the previous visit to the delete.html page?

I have tried using both RequestUtils and request.parameter(String). both with the same result.

The really strange thing is, if I wait a while, (a minute or so) then try again, it works fine and deletes the object with id 34.