06-19-07 06:19 AM
jleno@mail.sogeti-transiciel.com wrote:[vbcol=seagreen]
> Cookies may be an option for what I want to do.
>
> Would it be possible to a portlet to read cookies set by the portal theme?
>
> I would need to read cookies from a JSP Component in WCM Content Viewer portlet.[/
vbcol]
I don't know... you'll have to try a test. Many of the Portlet APIs
where you get a value and pass in a key (such as request, session, etc.
attributes) will first check for the namespace encoded version of the
key and if a value isn't found, it will look for the key directly. You
might be able to use this to get a value set in the theme. I know that
it is not possible to go the other way around. i.e. You cannot set a
value in the portlet that is not namespace encoded and therefore would
be accessible by the theme.
Now, if you can use JavaScript in the portlet, you can get and set all
the cookies you want.
[ Post a follow-up to this message ]
|