Eug9n9
Feb 10th, 2006, 09:13 AM
Hello all,
I am trying to develop a simple test: 2 spring-portlet-mvc-based portlets should "talk" to each other - via an attribute, stored in the PortletSession.
According to this Inter-portlet communication (https://www.dev.java.net/files/documents/1654/8898/tip1.html) tip, using the portlet api I should:
1) In processAction() of the 1st portlet store the attribute:
portletSession.setAttribute("cityName", newCityName, PortletSession.APPLICATION_SCOPE);
2) In doView() of the 2nd portlet get the attribute:
currentCityName=(String)portletSession.getAttribut e("cityName",PortletSession.APPLICATION_SCOPE);
Now, How do I do it with Spring Portlet MVC?
p.s. AFAIK PortletUtils.set/getSessionAttribute() provides this functionality, but what are the right places to put these methods?
I am trying to develop a simple test: 2 spring-portlet-mvc-based portlets should "talk" to each other - via an attribute, stored in the PortletSession.
According to this Inter-portlet communication (https://www.dev.java.net/files/documents/1654/8898/tip1.html) tip, using the portlet api I should:
1) In processAction() of the 1st portlet store the attribute:
portletSession.setAttribute("cityName", newCityName, PortletSession.APPLICATION_SCOPE);
2) In doView() of the 2nd portlet get the attribute:
currentCityName=(String)portletSession.getAttribut e("cityName",PortletSession.APPLICATION_SCOPE);
Now, How do I do it with Spring Portlet MVC?
p.s. AFAIK PortletUtils.set/getSessionAttribute() provides this functionality, but what are the right places to put these methods?