Maintain Session using URL Rewriting

In this method, we rewrite the URL and append the information to the URL to keep the track of the values. URL Rewriting can be used to maintain the session. We can maintain session using URL rewriting. There are several methods to maintain session between client and server, see all types of method here Lets […]

Continue Reading

Maintain Session using User Authorization

We can maintain session using User Authorization, the most common method. Maintain Session using User Authorization is the second method in the series of http://p3lang.com/2014/06/playing-with-session-in-java/ post. User Authorization is the most common way to maintain session between client and server. A user has to sign-in into the application using their credentials. Once the user submits […]

Continue Reading

Maintain Session using Cookies in jsp servlet

Session can be maintained using browser cookies. Here in this post, we will see how to Maintain Session using Cookies in JSP servlet. It is very simple to maintain session using cookies, you just need to create an object of Cookie Class then call addCookie() method on response. Code Snippet:

  See full example […]

Continue Reading

Playing with Session in Java

In this port of Playing with Session in Java, we will explore some of the concepts of session and try to understand what session is: What is session? Session is a concept that is use to maintain connection between client and server. In easy words its client and server interacts using session. Server recognizes client […]

Continue Reading

JSTL Tags in Jsp

JSTL is stands for JSP – standard Tag Library JSTL gives the collection of jsp tags that are very useful if you are not using any framework like Struts2. File Structure Example —index.jsp—

—link.jsp—

Download jstl.jar   OUTPUT   Download JSTL Hello Example  

Continue Reading