Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How do I support both GET and POST from the same Servlet?


The easy way is, just support POST, then have your doGet method call your doPost method:

public void doGet(HttpServletRequest request, HttpServletResponse response)
                        throws ServletException, IOException
{
    doPost(request, response);   
}
Related Posts Plugin for WordPress, Blogger...
Flag Counter