[jboss-user] [JBoss Portal] - Re: 2 identical portlets in the same page
arkhilis
do-not-reply at jboss.com
Mon Mar 26 07:45:22 EDT 2007
Hi,
I am also facing the problem of displaying two different RSS feeds with same portlet on same page
i have used
following code in my processAction()
request.getPortletSession(false).setAttribute("count", new Integer(NumberofItems));
this.objRssParser = new RssParser();
this.objRssParser.parseRSS(new URL(RssURL), NumberofItems);
request.getPortletSession(false).setAttribute("result", this.objRssParser);
and try to access count & result variable from view.jsp as
Number of Items : <%=request.getSession(false).getAttribute("count")%>
.
.
.
<%
RssParser objRssParser = (RssParser) request.getSession(false).getAttribute("result");
%>
is the correct way, i am using JBoss 2.6
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031541#4031541
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031541
More information about the jboss-user
mailing list