Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect, foreward

 
Rafter
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody tell me about the differece between dispacher.foreward() and sendRediect().
thanks and regards
Haribabu
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafter, use the search facility. This has been discussed several times in this and the JSP forum.

Bosun
 
Rafter
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Bosun,
there is no search button here, how can search. Please explain the difference , don't give this kind of suggesions.
thanks and regards
Hari.
 
k swamy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a search button near "Post Reply" button...
"Search" for it!!!
 
Rafter
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Swamy,
thank you for your suggestion , I have searched the site, but I did not the content except my own topic, thanks and regards
Hari.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try spelling forward correctly.

A search for "forward redirect differen" (because inexplicably, there is a textbox size limit, difference is truncated) returns 11 results, a few of which contain an explanation for you.

However, as a shortcut, just keep reading:

sendRedirect actually sends an HTTP response to the browser, ordering it to load a different page. In terms of your application, it would be 'the next page'.

forward works on the server side, and no HTTP response is sent to the browser, unless the resource to which you are forwarding outputs something.

 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafter,
Please read http://www.javaranch.com/name.jsp and re-register with a name that conforms. We would like you to be able to continue to post here at JavaRanch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic