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
Is it good idea to create servlet constructor?
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!
why we should override only no-agrs init() method.
What is the servletconfig object?
How do cookies work in servlets?
How the JSP file will be executed on the Server side?
Explain the architechure of a servlet?
Write a program to show the functionality of doget and dopost method?
What's the use of servletcontext?
What is servlet in simple terms?
What is the difference between servlet and jsp?
When Servlet is unloaded?
How do you design microservices?
What is the life cycle of a servlet?
What is the advantage of Servlets when compared with other server side technologies?