What is the procedure of invoking different servlet in a different application?

devquora
devquora

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  devquora
    Answered by Vishwa Patel

    Request Dispatcher is used to invoke a specific application. As it is used for a specific application, we can't use this method for every application. In the case of sending a request to the resource in a different application, it is better to use Servlet Response send Redirect () and provides the full URL of another servlet. When it is done, it forwards the clients a response which has a response code to send the invoke to another URL. Cookies are also available to send the data to the different servlet.

Related Questions

Please Login or Register to leave a response.

Related Questions

Java Servlet Interview Questions

What do you mean by Servlet?

It is designed by the Java software company. It is used to extend the ability of the server...

Java Servlet Interview Questions

Which HTTP method is said to be non-idempotent and idempotent?

If any HTTP brings the same result every time then it means it is idempotent...