I have a Portlet deployed in IBM Portal Server 6.1 which has been mapped to a URL....
I'm trying to add a paramater to a URL like so...
http://localhost:10038/wps/myportal/StockOnHandPortlet?myParameter=false
And then read the parameter in my doView method like so...
HttpServletRequest originalRequest = ((HttpServletRequest)((HttpServletRequestWrapper)request).getRequest());
Enumeration params = originalRequest.getParameterNames();
while(params.hasMoreElements()){
String paramName = (String)params.nextElement();
System.out.println(paramName + " = " + originalRequest.getParameter(paramName));
}
But the parameter I've passed in my url is not in the request. i.e. Enumeration params is empty.
Can someone help me figure out on how I can fix this so that I can read a parameter in the URL inside doView?
thanks
Try this: