06-20-07 12:23 AM
Hi,
It should be possible. Cookies are stored/managed by the client and is share
able between different web apps.
I believe the WCM Viewer uses the IBM Portlet API and is not a JSR168 portle
t. As such, in the JSP, you might be able to do:
Cookie[] cookieArray = request.getCookies();
This method is not available in JSR168. While there is not an official stand
ard yet, I found the following trick to work:
String cookieList = request.getProperty("cookie");
/* Now parse through the ; delimited cookie list for the cookie name/value y
ou need */
Also, another alternative might be to use Javascript within your JSP to read
the coookie. Hope that help!
Regards,
Bryan
IBM WebSphere Portal
ISV Technical Enablement & Support
[ Post a follow-up to this message ]
|