File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rd.forward()

 
Meghasyam Bokam
Greenhorn
Posts: 16
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic