Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem when using request Dispatcher

 
Suresh Khanna
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
Why can't we use doPost() when using request dispatcher.
I have two servlets where the first servlet is dispatching request to second servlet. The servlets are working fine when i am using doGet() method for both. When i tried to use doPost() method in both of them i am getting the following error.
HTTP Status 405 - HTTP method GET is not supported by this URL
 
Jacky Chow
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Suresh,
I answered your question here http://www.coderanch.com/t/357764/Servlets/java/doPost-while-request-dispatcher
 
Suresh Khanna
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jacky,
Thank you for your answer.
I appreciate it.

Regards
Suresh K
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic