What is the difference between <jsp:forward> and
sendRedirect?

Answer Posted / harish

Using <jsp:forward> you can forward the request and
response object to the concern URL. Where as in
sendRedirect, it will not carry the request and response
object details.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print java variable in jsp?

535


What is context url?

493


How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2016


How can I prevent the output of my jsp or servlet pages from being cached by the browser?

572


Explain the steps for creating custom tags in jsp?

481






How to include a jsp file in another jsp file?

498


How to get value from java to jsp page?

513


What is the difference between java servlet and jsp?

500


Explain client-side and server-side validation.

493


What is the difference between a scrollbar and a scrollpane in jsp?

485


How can I enable session tracking for jsp pages if the browser has disabled cookies?

534


What are different types of comments used in jsp?

510


How can the applets be displayed in the jsp? Explain with an example.

532


Explain the advantages in jsp?

533


What is contextpath in jsp?

502