Results 1 to 5 of 5

Thread: forward and SendRedirect....

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    forward and SendRedirect....

    Can anyone tell me, In which situation we are using "forward()" and which situation we are using "SendRedirect()" in servlet?


  2. #2
    Junior Member
    Join Date
    Jun 2007
    Answers
    21

    Re: forward and SendRedirect....

    Hi,

    In web application, if you want to move page within current web application that time you choose forward() method,
    else you want to move different web application page, you use sendredirect()

    bye


  3. #3
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: forward and SendRedirect....

    Thanks for the quick reply sampath...


  4. #4
    Junior Member
    Join Date
    Jul 2007
    Answers
    2

    Re: forward and SendRedirect....

    Hi All This is Sheetal.A I am Looking for some faq's about java,jsp servlets....


  5. #5
    Junior Member
    Join Date
    Jan 2008
    Answers
    11

    Re: forward and SendRedirect....

    what sampath told i right ,but performance wise forward() is good because , noneed to create new req,resp objects nad there is no need of two network round trips between client &server


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact