WebSphere Portal Server - Request of Portlet Parameter failes

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > April 2005 > Request of Portlet Parameter failes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Request of Portlet Parameter failes

2005-04-08, 7:49 am

Hi people,
I created a link inside a JSP which includes a parameter and value:

<a href="
<portlet:actionURL windowState="normal" portletMode="view">
<portlet:param name="mode" value="0"/>
</portlet:actionURL>">Overview</a>

To check if the value of the parameter changed and for user-guidance purposes the value of the parameter should be displayed on the JSP by following code:

<%
String mode = request.getParameter("mode");
%>

Parameter Mode:<%=mode%>

Is this enough action to make the parameter be available inside the JSP or do still have to add something in the porcessAction method because the output always shows null.

thanks in advance for helping

Julius

2005-04-08, 7:49 am

the code was parsed by the forums webserver, so here once
again a try:

Link with Parameter in the JSP(PortletView):
[anchor tag]
portlet:actionURL windowState="normal" portletMode="view"
portlet:param name="mode" value="0"
portlet:actionURL
[anchor tag]


Reading of parameter in the JSP(PortletView):

[java code]
String mode = request.getParameter("mode");
[java code]

Parameter Mode:[java code]=mode[java code]

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com