no action method calling after clicking browser "Back" button

Hi, I have list of items, which is rendered within table - dataTable. for each row I have commandLink with parameter with unique value. When I will click on it, it is calling action method, I will read parameter and do something - next page is rendered

Problem is when I click browser "Back" button from next page toward original page with table. whean I will click on another commandLink, no action method is called and next page is unchanged with old values...

Radim

[487 byte] By [radim.slovaceka] at [2007-10-3 1:48:15]
# 1
This is because when you use browsers back button no request to the server occures. You can fix this disabling browsers cache.
amitteva at 2007-7-14 18:46:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I see, and how do I will this?
radim.slovaceka at 2007-7-14 18:46:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

add this in ur to ur jsp

<%

response.setHeader("Cache-Control", "no-cache"); //Forces caches to obtain a new copy of the page from the origin server

response.setHeader("Cache-Control", "no-store"); //Directs caches not to store the page under any circumstance

response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"

response.setHeader("Pragma", "no-cache"); //HTTP 1.0 backward compatibility

%>

golanblna at 2007-7-14 18:46:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...