Portal and Portlet Question:

Can you explain what is PortletSession interface?

Tweet Share WhatsApp

Answer:

User identification across many requests and transient information storage about the user is processed by PortletSession interace. One PortletSession is created per portlet application per client.

The PortletSession interface provides a way to identify a user across more than one request and to store transient information about that user.

The storing of information is defined in two scopes- APPLICATION_SCOPE and PORTLET_SCOPE.

APPLICATION_SCOPE: All the objects in the session are available to all portlets,servlets, JSPs of the same portlet application, by using APPLICATION_SCOPE.

PORTLET_SCOPE: All the objects in the session are available to the portlet during the requests for the same portlet window. The attributes persisted in the PORTLET_SCOPE are not protected from other web components.

Download Portal and Portlet PDF Read All 20 Portal and Portlet Questions
Previous QuestionNext Question
Can you explain the Portal architecture?What is Remote Servers in portal architecture?