Very Urgent, Portlet session passing parameters to JSP

I am having a problem that I can not know how to fix it. My problem is I can not transfer the values I can catch in my java file but not to JSP when I click on an URL in my JSP file to another JSP page.

In my java file in doview(), I have

PortletSession session = request.getPortletSession();

String[] MyNetworks = request.getParameterValues("networks");

session.setAttribute("networks", MyNetworks, PortletSession.APPLICATION_SCOPE);

// MyNetworks = session.getAttribute("networks");

MyNetworks = (String[]) session.getAttribute("networks");

In my JSP files

HttpSession session =request.getSession(true);

String[] MyNetworks = request.getParameterValues("networks");

session.setAttribute("networks", MyNetworks );

MyNetworks =(String[]) request.getSession().getAttribute("networks");

I can catch the MyNetwork [] in my java file, but I can not catch all the values from an URL click, it only display the last value of MyNetwork[], not all of them. When I continue to click the URL in previous JSP again, MyNetwork[] in JSP become null but in java file I can still catch all the values from MyNetworks [].

Please help me solve this problem. This is very urgent request.

[1255 byte] By [wasabi3689a] at [2007-11-27 2:02:07]
# 1

In the JSP code you are not specifying any scope. When you do not specify the scope, the API assumes PORTLET_SCOPE (see http://portals.apache.org/pluto/multiproject/portlet-api/apidocs/javax/portlet/ PortletSession.html#setAttribute(java.lang.String,%20java.lang.Object)

Make sure you are using the same scope in both your java code and the JSP.

ziebolda at 2007-7-12 1:43:06 > top of Java-index,Web & Directory Servers,Portal Servers...