Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how it will recognize doGet() or doPost()

 
S.Reddisekhar Reddy
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if we use rd.forward("ServletName") or rd.include("ServletName") then how it will decide to call doGet() or doPost() ,I hope if we didn't specify any it will call doGet() is it right?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As neither creates a new request, the HTTP method is unchanged.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic