Hi,
I have tried using Override void doPost (HTTPServletRequest request, HttpServletResponse response) to get data from a html form which states form action = post.
However, I can get the data posted to a ms access database and then use doGet and use response.sendRedirect to another html page.
This works fine except that if the data is a duplicate one, the it won't redirect ti to another html page and a error message is suppose to pop up. Even if it is successful, a successful message must pop up before it redirect.
However, it doesn't and the servlet just redirect it to another html page.
When I use processRequest((HTTPServletRequest request, HttpServletResponse response), it works.
I hope someone can point out to me the reason why?