Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rd.forward()

 
Meghasyam Bokam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
when we call rd.forward("/servlet/AccountServlet") in the doPost() method of LoginServlet, which doXXX() method is called in the AccountServlet. Assume both LoginServlet and AccountServlet are in the same web appl.
Thanks,
Meghasyam.
 
Daniel Zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it'll be doGet() since the default method is GET if POST is not explicitly specified.
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well best way to learn is to try it out and see which method it calls but it appears it will be the doGet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic