What is difference between Forward() and sendRedirect()
methode?

Answer Posted / lala mishra

i will tell the conclusion of all
1. in case of forword() server will not inform client
2. in case of forword the same request will be sent to other
resourse so that request attribute will not distroy.

the opposite is for sendRedirect.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between forward () and sendredirect () functions in servlet? Explain

551


What is war file?

583


What are the types of Session Tracking ?

648


How will you pass values from HTML page to the servlet?

557


Can a jsp be called using a servlet?

586






What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

617


What is servlet? Explain

584


Is it possible to have a constructor inside the servlet?

554


Tell the new features added in servletrequest interface i.e. Servlet 2.4

575


What is difference between jsp and servlet?

648


Explain their methods? Tell me their parameter names also have you used threads in servlet?

585


What is the use of request dispatcher interface?

571


Which is the methods of generated servlet?

682


What are the type of protocols used in httpservlet?

616


What are different Authentication options available in Servlets.

569