The Artima Developer Community
Sponsored Link

Java Answers Forum
Servlet request forwarding

1 reply on 1 page. Most recent reply: Jan 11, 2004 8:45 PM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Kul

Posts: 2
Nickname: dilse4460
Registered: Jan, 2004

Servlet request forwarding Posted: Jan 11, 2004 3:33 AM
Reply to this message Reply
Advertisement
>
sendRedirect fuction was not working properly. I am using
>jdk1.1.8, JRun, IIS. Can you suggest me what are the varients to control
>changing while moving through a servlet. Please suggest me something
>related to the back processing of servlet.
>
>Kul ban
>kul_ban@rediffmail.com


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Servlet request forwarding Posted: Jan 11, 2004 8:45 PM
Reply to this message Reply
what do u mean by not working properly..
U can use
RequestDispatcher().forward()also.

u use sendRedirect() when you want to redirect the user browser to other location.

u use RequestDispatcher().forward() on servlet A to pass the control to other servlet on the same server
say user requested page A and you redirect the web container to send the user output of other servlet on the same server

Flat View: This topic has 1 reply on 1 page
Topic: Help to the Stranger Previous Topic   Next Topic Topic: Downloading table data into lotus 123 spread sheet

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use