Hi everybody,
I have a
jsp page that calls
servlet, passing there all data.
I am using <FORM NAME="Form1" method="post" action="ServletName" onSubmit="return submitForm(this)">
Also I need to display message on screen (when user click on submit button), since this is a last screen for user, but process will be continue inside of servlet.
I am not sure and where it shouldbe done, I mean inside of jsp page or inside of servlet. I tried to do this inside of servlet,
using:
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println(" <HTML><HEAD><TITLE> Employee Information </TITLE></HEAD>");
out.println(" <BODY BGCOLOR=\"#fdeed5\" TEXT=\"#000000\" >");
out.println(" <H3><B><CENTER><FONT FACE=Arial, Helvetica> Request was submitted </FONT></CENTER></B></H3>");
out.println(" </BODY></HTML>");
return;
But after 'return' control will not be returned to the servlet.
I would really appreciate any help and sample code.
Thanks