• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Re directing

 
mini mehta
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is redirecting? Is it the way to forward the request to the other servlet or JSP. BTW I know that RequestDispatcher object can be used to forward or include a Servlet or JSP. So what is this URL redirecting?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A redirect send sa message back to the browser to make a new request using the redirect URL that you provide. It is different from a forward or include in that it results in a new request which will not implicitly carry over any paramters or attributes from the original request.
hth,
bear
 
Manoranjan Mishra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yah Mini
Its a way to forward request to another JSP or Servlet.. It is mostly used in the Despatcher model (N-tier) of the JSP.. The basic moto behind redirection is to separate the business logic from the presentation and include as less java code as possble in the presnetation layer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic