Call page reload with javascript, on button press. You can do this in two ways:
1)
<input type="submit" value="submit" onsubmit="window.location.reload()"/>
in case it doesn't work, check the first answer on How can I refresh a form page after the form submits to _blank?
2)
<input type="submit" value="submit" onclick="refresh()" />
add the following javascript code just below:
<script type="text/javascript">
function refresh (){
window.location.reload();
}
</script>
The above two solutions are equivalent. A different approach is to set the meta attribute of the html page, specifying the refresh interval. Please take a look at https://www.codeproject.com/Questions/250016/refresh-the-jsp-page
That gives a third solution:
3)
<%
if(session.getAttribute("refreshCount") != null &&
session.getAttribute("refreshCount") == true )
{
response.setHeader("REFRESH", "0"); //refresh page once per submit
session.setAttribute("refreshCount", false);
}
%>
In the servlet, when you save data to database, also call
HttpSession session=request.getSession();
session.setAttribute("refreshCount",true);
4)
In the servlet, use redirect instead of forward (you will be redirecting to the same page)
how to reload JSP page after submit form data
http://www.javapractices.com/topic/TopicAction.do?Id=181