I have the same problem. Is there a solution?
This is a discussion on WPS 6.1 Problems with passing parameters to STRUTS action JSR 168after mig - Websphere ; Hi, Recently we migrated from *WPS 6.0* to *WPS 6.1* and are encountering some problems with jsr168 struts portlets which worked fine with the previous version of portal (6.0.x). One of them is that we can't read parameters from *PortletRequest* ...
Hi,
Recently we migrated from *WPS 6.0* to *WPS 6.1* and are encountering some problems with jsr168 struts portlets which worked fine with the previous version of portal (6.0.x).
One of them is that we can't read parameters from *PortletRequest* anymore...
Example:
Jsp:
{code}
Struts Link Label
{code}
Action:
{code}
Enumeration enumer = request.getParameterNames();
while (enumer.hasMoreElements()) {
String element = (String) enumer.nextElement();
System.out.println("element " + element + " value " + request.getParameter(element)); }
{code}
Result:
{code}
[02.09.08 13:19:54:289 CEST] 00000043 SystemOut O element spf_strutsAction value !2fedit.do!3factionType=add
[02.09.08 13:19:54:289 CEST] 00000043 SystemOut O element spf_ActionName value spf_ActionListener
{code}
and
Action:
{code}
String s = request.getParameter("actionType");
System.out.println("s " + s);
{code}
Result:
{code}
[02.09.08 13:27:54:492 CEST] 0000003c SystemOut O s null
{code}
Please help.
I have the same problem. Is there a solution?
Use to generate the links with params, there seems to be an issue with .
a href=" Second 1
Check the link for example.
http://www-01.ibm.com/support/docvie...=utf-8&lang=en
Use portlet:actionURL instead of html:link there seems to be an issue with it.
{code}
a href=" Second 1
{code}
Check the below link for example
[How to create a link to target the action of a struts portlet|http://www-01.ibm.com/support/docvie...utf-8&lang=en]