Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request dispatcher and send redirect

 
kiran kumar sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we forward or redirect a request using request dispatcher or response sendRedirect to servlet, which method of the servlet is called..?
 
Praveen Thaliyil
Greenhorn
Posts: 10
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi kiran ,



please go to http://www.roseindia.net/help/java/s/forward-vs-redirect.shtml
hope it will help you.
 
Anurag Verma
Ranch Hand
Posts: 167
Hibernate Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for redirection, it is always a GET request, for forwarding from a servlet to another, whatever type of request the forwarding servlet has recieved, will be passed on to the forwarded servlet.
 
kiran kumar sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic