Getting the query string in a portlet factory portlet
kcibmer 1000007V7A Comments (3) Visits (6772)
Someone asked me today how to get the query string from a portlet built using Web Experience Factory (formerly WebSphere Portlet Factory). The use case is this: an email has a link to register on your site. You want to know something about where the user got the link (which email, etc) so you attach a query string to it.
You can get to the query string with a bit of Java code:
public String getQS(WebAppAccess webAppAccess)I published the portlet, and gave anonymous users access to it. I put it on a page (qstest) which also is available to anonymous users, and made sure that page had a friendly URL. Then I accessed the page like this: http
Find the sample here.