You should read the spec... Section 15 anonymous wrote : PLT.15.3 Binding Attributes into a Session | A portlet can bind an object attribute into a PortletSession by name. | The PortletSession interface defines two scopes for storing objects, | APPLICATION_SCOPE and PORTLET_SCOPE. | Any object stored in the session using the APPLICATION_SCOPE is available to any other | portlet that belongs to the same portlet application and that handles a request identified as | being a part of the same session.cx | Objects stored in the session using the PORTLET_SCOPE must be available to the portlet | during requests for the same portlet window that the objects where stored from.cxi The | object must be stored in the APPLICATION_SCOPE with the following fabricated attribute | name ?javax.portlet.p.?<ATTRIBUTE_NAME>?. is a unique identification for | the portlet window (assigned by the portal/portlet-container) that must not contain a ??? | character.cxii <ATTRIBUTE_NAME> is the attribute name used to set the object in the | PORTLET_SCOPE of the portlet session. | Attributes stored in the PORTLET_SCOPE are not protected from other web components of | the portlet application. They are just conveniently namespaced. | The setAttribute method of the PortletSession interface binds an object to the | session into the specified scope. For example: | PortletSession session = request.getSession(true); | URL url = new URL(?http://www.foo.com?); | session.setAttribute(?home.url?,url,PortletSession.APPLICATION_SCOPE); | session.setAttribute(?bkg.color?,?RED?,PortletSession.PORTLET_SCOPE); |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953670#3953670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953670 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user