Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doPost or doGet  RSS feed

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is sendderict and jsp:forward happens by doPost or doGet
Regards,
aakash
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since redirect uses just a URL, it has to be doGet - forward uses the existing request which already has a GET or POST method assigned to it.
See javax.servlet.HttpServletRequest.getMethod()
Bill
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!