Announcement Announcement Module
No announcement yet.
request parameter somehow cached? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • request parameter somehow cached?

    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.

    Anyone have any ideas cos i'm stumped on this one.