j2eeLib provides a number of functions that are useful to web application developers. Most j2eeLib functions have equivalents in portalLib. However, portalLib does not provide functions for setting request attributes for a portlet. Most JSF applications do not need request attributes, but some portlet applications do. You can use the j2eeLib functions getRequestAttr() and setRequestAttr() within a portlet.