Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?



Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?..

Answer / Amit Agnihotri

The `request.getRequestDispatcher()` and `context.getRequestDispatcher()` methods are used in JSP to forward a request, or include another resource (such as another JSP page), from the current one. This allows for easy navigation between pages without recreating the request object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

How do I set password expire time period?

1 Answers  


What is JSP?

3 Answers  


How can I prevent the output of my jsp or servlet pages from being cached by the browser?

1 Answers  


What are the steps for creating custom tags in jsp?

1 Answers  


Which one is better jsp or servlet?

1 Answers  


How can we disable el?

1 Answers  


Why do we need custom tags in jsp?

1 Answers  


Explain handling of runtime exceptions.

1 Answers  


What do you know about writing custom jsp tags?

1 Answers  


What is jsp in html?

1 Answers  


which situation you use static include and dynamic include in jsp?

2 Answers   L&T,


What is attribute in jsp?

1 Answers  


Categories