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.
Never Miss an Articles from us.
It is designed by the Java software company. It is used to extend the ability of the server...
Web Server is the connection between the HTTP and HTML...
If any HTTP brings the same result every time then it means it is idempotent...