I am using Struts (server side with JSPs) and XHTML to develop an application.
On pressing submit in my page the specific action.do gets called and data gets submitted in the database.
A page gets displayed "Request Successfully Sent"
Is that if the user now clicks back button of CELL PHONE the same action.do gets called again with the same data, and the data gets submitted again.
Have tried my best but am not able to remove the data from CACHE.
have used the following headers in response
response.setHeader("Cache-Control","no-store,must-revalidate,post-check=0,pre-check=0"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0);
and meta tags
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="max-age" content="0">
However this works fine in the Internet Explorer.
Problem comes only when I use Nokia 6230i Emulator or any Series 40 Mobile Phone.
Please help me find a solution.