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

Answer Posted / raghunath bj

Jsp forward will be used to send some sort of response to
any webresource (it can be a servlet or a jsp) and
sendRedirect will be used in the case of response to be
sent to the next view or Jsp.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it good idea to create servlet constructor?

738


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!

1831


why we should override only no-agrs init() method.

676


What is the servletconfig object?

530


How do cookies work in servlets?

579






How the JSP file will be executed on the Server side?

642


Explain the architechure of a servlet?

602


Write a program to show the functionality of doget and dopost method?

651


What's the use of servletcontext?

679


What is servlet in simple terms?

563


What is the difference between servlet and jsp?

596


When Servlet is unloaded?

625


How do you design microservices?

621


What is the life cycle of a servlet?

781


What is the advantage of Servlets when compared with other server side technologies?

1853