Sam,
I also faced this problem & I used sessions to resolve this.If you want to prevent page to refresh,its better you create a session or use setAttribute() from previous page..& in original page check the session or getattribute() for the first time & display the contents & make it null at the end.Now if you refresh do whatever action you want coz session is null now
the pseudocode should look like this
if(request.getAttribute("someObj")!= null)
{
//show whatever u want for first time
request.setAttribute("someObj")=null
}
else
{
response.redirect("tosomepage")
//or do whatever action u want here to prevent refresh
}
Try this it will work
njoi