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

Usage of sendRedirect()?

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

sendRedirect() method is working with client...so if you redirect to B.jsp

still you able to access session in B.jsp!!! but you can not access request object!!

please anyone can tell me the usage of sendRedirect()

thanks & regards,
seetharaman
[ April 27, 2008: Message edited by: David O'Meara ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sendRedirect() sends a message to the browser asking it to load the new link, which may be either local or remote.

Consider the following, which processes some data then displays the menu page:

Once they get back to the main page, if they reload the page the original form gets called and processes the data again when the person just wanted to refresh the page. The display is still coupled with the previous processing.

If the client reloads, they get the index page again.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI, Bear removed the multiple exclamation marks from your topic, I re-edited to make it meaningful.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, David O'Meara
 
deepak kabra
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sendRedirect() method is use for sending new request to the client.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic