form.jsp
<form action="handle.jsp" method="post">
FirstName<input type="text" name="fname">
<input type="submit">
</form>
handle.jsp
<%
response.setContentType("text/html");
System.out.println("servlet1......");
out.println("<h1> page start</h1>");
String param = request.getParameter("fname");
application.log(param);
for(int i = 0; i < 10000; i++){
application.log("servlet ..."+param+i);
System.out.println("servlet1......"+param+i);
}
out.println("<h1> page end</h1>");
%>
i have requested the form.jsp
http://localhost:8080/test/form1.jsp i have given hello as a value in the text field then submit the form and
again submit the form when the first request is still processing by server.
please run the above sample code and see the server is executing the same funtion for two same request.
how to avoid the second submit when the server is processing the first submit still.