Hello

I am trying to get IPC working between 2 portlets. So far I have the following:

In the processAction methos of portletA I have:

  | PortletSession ps = aRequest.getPortletSession();
  | ps.setAttribute("id", id, PortletSession.APPLICATION_SCOPE);

In the doView method of portletB I have:

  | PortletSession ps = rRequest.getPortletSession();
  | String object = (String)ps.getAttribute("id", 
PortletSession.APPLICATION_SCOPE);

I can access the 'id' variable here. I would like to access the id from the jsp 
that is associated with portletB but have not been able to get that right. I 
have tried:

In jspForPortletB:
String object_id = (String)request.getAttribute("id");

but I get a null value back. Does anyone have a suggestion as to how I can get 
the id value in the jsp? I have read in the Portlet Spec that a value stored in 
the PortletSession should be available in the HttpSesssion.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955735#3955735

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955735

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

Reply via email to