This content has been marked as final.
Show 2 replies
-
1. Re: Links within portlets
roy.russo May 9, 2006 11:16 AM (in response to louise_za)You have to use the actionURL or renderURL tag. Its in the spec.
-
2. Re: Links within portlets
louise_za May 10, 2006 7:39 AM (in response to louise_za)Thanks Roy. It works now. Hopefully this will help someone else:
Include the following lines in your jsp file:<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %> <portlet:defineObjects/> ... ... <portlet:actionURL windowState="normal" portletMode="view" var="theActionUrl"> <portlet:param name="id" value="1234"/> </portlet:actionURL> <a href="<%= theActionUrl %>" target="_self">Item 1</a>
This will then post a variable called 'id' with value '1234' via the URL. The above code (first post) in the processAction method will handle this variable and make it available in you page. This works for posting variables via URL parameters to the same jsp page.