When an html page is sent to the / jsp servlet or to any other web resource, it contains some headers. Among these headers are query parameters. When the user clicks refresh / f5 in his browser, the browser does this to re-place the same header as before. So this problem is browser specific.
. , , , .
newjsp.jsp:
String param = request.getParameter("param");
if (session.getAttribute("PARAM") == null) {
out.print("This is a NEW request");
session.setAttribute("PARAM", request.getParameter("param"));
} else if (session.getAttribute("PARAM").toString().equalsIgnoreCase(param)) {
out.print("This is a REFRESH");
session.removeAttribute("PARAM");
} else {
out.print("This is a NEW request");
session.setAttribute("PARAM", request.getParameter("param"));
}
'newjsp.jsp? param = xyz123' .