HttpServletResponse state after response.redirect() Method call

F

Faisal

Hi all,
I have a questation: what happens when one calls the
response.redirect() method of HttpServletResponse, to the state of the
HttpServletResponse object??
What if an IOException is raised on calling this method can one set any
other Http-Header for example if an IOException is raised on calling
this method can one call the response.sendError message in the catch
block???

Thanks and Regards
Faisal Yousuf
 
A

Andrea Desole

Faisal said:
Hi all,
I have a questation: what happens when one calls the
response.redirect() method of HttpServletResponse, to the state of the
HttpServletResponse object??
What if an IOException is raised on calling this method can one set any
other Http-Header for example if an IOException is raised on calling
this method can one call the response.sendError message in the catch
block???

if there is an IOException this means that there is an input/output
error, and writing further to the response stream might be not successful
 
P

Pep

Faisal said:
Hi all,
I have a questation: what happens when one calls the
response.redirect() method of HttpServletResponse, to the state of the
HttpServletResponse object??
What if an IOException is raised on calling this method can one set any
other Http-Header for example if an IOException is raised on calling
this method can one call the response.sendError message in the catch
block???

Thanks and Regards
Faisal Yousuf

Have you tried a simple test case to answer your own question?
 

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,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top