What do you understand by URL Rewriting?

devquora
devquora

Posted On: Feb 22, 2018

 

It is not good to use Http Session in servlets as it does not work by alone. It uses cookies for session management and we can disable the cookie in the client browser. So most of the IT worker believes that it is better to use Servlet API because it can easily perform the function of URL rewriting.

Servlet API is very easy to use as it involves only one step that is encoding the URL. So, it is very beneficially in respect of coding. Another benefit of using Servlet API over Http session is that it works only when the cookies are disabled.

Http Servlet Response encodes URL () can also be used for redirecting the request to the different resources and encode Redirect URL () method is used in the case of client wants to give some session knowledge.

    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...