difference between sendredirect,forward and url rewritting

Answer Posted / ravikiran.chd

sendRedirect will happen on the client side,forward will
happen on the server side,url rewriting will happen by the
browser to do session tracking when the cookies are disabled
by calling response.encodeURL(/abc) or
reponse.encodeRedirectURL(/abc)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can call a jsp from the servlet?

531


What are the mechanisms used by a servlet container for maintaining session information?

562


What are all the protocols supported by httpservlet?

648


How can you push data from an Applet to a Servlet?

605


Explain the war file?

608






What are the different session tracking techniques?

672


How to get the server information in a servlet?

683


What is preinitialization of a servlet?

580


What is servlet configuration?

524


What mechanisms are used by a Servlet Container to maintain session information?

666


How to create war file?

613


When Servlet is unloaded?

625


How to handle exceptions thrown by application with another servlet?

608


Which is the methods of generated servlet?

678


How are filters?

580