Bookmark Topic Watch Topic
  • New Topic

Regarding differenc between RequestDispachers and sendrdirect

 
raj talatam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Report post to moderator
i want to execute two jsp'/servlets in a single request we go for requestdispatchers


but the same functionality we are getting with response.sendRedirect can we call this is also executing multiple jsps in a single request..

one.jsp
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Raj,

Can you please elaborate your question in detail ?

Thanks,
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
sendRedirect will go to the browser that will then call the URL to redirect to. The URL in the browser's address bar changes.
RequestDispatcher stays at the server, and the URL does not change.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please see the JspFaq before posting questions.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!