|
![]() |
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Cheers,<br />Priyank<br />SCJP-96%,SCWCD-85%
When you forward the request with requestDispatcher.forward the target servlet/JSP share the same session. But with sendRedirect the session information is not preserved. ( target is not in scope of session)
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Originally posted by Narendra
U can dispatch the request to another context, but not all container support it.
Originally posted by Narendra
Usually sendRedirect is used to redirect the response to another resource which is not in the same context (Atleast I am using) .
Originally posted by Narendra
When you forward the request with requestDispatcher.forward the target servlet/JSP share the same session. But with sendRedirect the session information is not preserved. ( target is not in scope of session)
Cheers,<br />Priyank<br />SCJP-96%,SCWCD-85%
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Cheers,<br />Priyank<br />SCJP-96%,SCWCD-85%
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0