difference between forward and sendredirect

Answer Posted / nagababu

Forward: server-side redirect with request and response
objects with in same web Container.
sendRedirect : Client-side redirect with new request and
response objects with diffrent web containers also.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which exception is thrown if the servlet is not initialized properly?

582


Can we use threads in Servlets?

648


How to get the IP address of client in servlet?

623


What's the advantages using servlets than using cgi?

556


What is difference between get and post method?

570






What is cookie in servlet?

591


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2526


What is the difference between the include() and forward() methods?

565


Define the servlet mapping.

544


Can you use javascript in servlets?

596


What are some disadvantages of storing session state in cookies?

586


Why do we need servlet filter?

562


Tell us something about servletcontext interface.

620


Differentiate between the get and post method

563


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

611