Response.Redirect question

G

Guest

Does Response.Redirect() make a roundtrip to the client to complete the
redirect? Is there a method which keeps the redirection server-side (e.g. in
JPS .Forward() moves the action to a new JSP/servlet without a roundtrip to
the client)?

Thank you
 
L

Lucas Tam

Does Response.Redirect() make a roundtrip to the client to complete
the redirect? Is there a method which keeps the redirection
server-side (e.g. in JPS .Forward() moves the action to a new
JSP/servlet without a roundtrip to the client)?


Yes, response.redirect makes a round trip.

Use Server.Transfer if you do not want a redirect, but the client's address
bar (URL) will not be updated to reflect the new page.
 
G

Guest

Wow, you guys answer fast! Thank you.

Lucas Tam said:
Yes, response.redirect makes a round trip.

Use Server.Transfer if you do not want a redirect, but the client's address
bar (URL) will not be updated to reflect the new page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,265
Latest member
TodLarocca

Latest Threads

Top