difference between sendredirect,forward and url rewritting

Answer Posted / ravikiran

forward is a teqnique used to delegate the response to a new
resource and happens on the server side.And we cann't
forward a response to a resource residing on different machine.
Sendrediredt is the techinque used to delegate the response to
other webapplication,which may reside on different machine
as well.
Url rewriting is a technique used for session tracking when
the cookies are disabled,to transfer the session id back and
forth between the clent and the server

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can servlet have a constructor ?

585


What do you mean by annotations in servlet?

574


When to use doget() and when dopost()?

617


What is the difference between using getSession(true) and getSession(false) methods?

562


Which httpsession object is used to view and manipulate information about a session?

716






Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

1819


Is java servlet still used?

577


What are the functions of the servlet container?

1011


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

632


What do you mean by filter in servlet?

528


Explain the difference between get and post method in servlet?

586


How servlets are deployed in java?

534


What are all the ways for session tracking?

584


When servlet object is created?

590


What is the need of session tracking in web application?

571