Java Servlet - Why I cant use DoPost?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tangara
    New Member
    • Jan 2010
    • 27

    Java Servlet - Why I cant use DoPost?

    Hi,

    I have tried using Override void doPost (HTTPServletReq uest request, HttpServletResp onse 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.sendRe direct 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( (HTTPServletReq uest request, HttpServletResp onse response), it works.

    I hope someone can point out to me the reason why?
Working...