O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.10. Attribute storage summary

There are many objects in the portal environment for storing attributes. In order to help you choose the right object for the right situation, refer to the following chart.

ObjectScopeAttribute TypeProgrammatic AccessBest Practice
PortletRequestLimited to request between the portal server and the portletobjectgetAttribute() setAttribute() removeAttribute()Use a short term bucket for communication between portlet and JSP (ex: Portlet URI)
PortletSessionLimited to subsequent requests by the same user on the same concrete portlet instanceobjectgetAttribute() setAttribute() removeAttribute()Use as an open line of communication between requests. (for example Shopping cart)
PortletSettingsShared by all instances of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required