I have a Post servlet which will inform user that the information is captured.
After the form is submitted, my browser is all blank. It is supposed to give me a message.
The data was captured in my database though.
PrintWriter out = response.getWriter(); ps.executeUpdate(); out.println("Successful registration. Member account has been created");
But, I'm not seeing this message in my browser - both IE and firefox.
I thought I have put in the printwriter stuff and it should be working fine.
Then, I went on to add on these lines to see if it works but it didn't (
response.setContentType("text/html"); out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " + "Transitional//EN\">\n" + "<HTML>\n" + "<HEAD><TITLE>Successful Registration.</TITLE></HEAD>\n" + "<BODY>\n" + "<H1>Hello WWW</H1>\n" + "</BODY></HTML>";
Is there anything I have missed out?