| Brian J. Sayatovic 2005-11-30, 5:56 pm |
| How many different ways to encode a String for a portlet?
I'm using WPS 5.0 with Struts-Portal. The typical way I encode names is
using PortletResponse.encodeNamespace or the tag in the portlet taglib.
Just recently, I've startel doing some digging in the debugger and found
that the prefixes that WPS uses for an attribute in the PortletSession when
placed into the HttpSession differs from the prefix used when using
encodeNamespace in the same portlet:
"foo" --> "PC_7_0_7N0_foo" // PortletResponse.encodeNamspace
"foo" --> "PC_T_0_7JQ_foo" // PortletSession attribute found in
HttpSession
While I know I should never rely on the internal workings of WPS, I'm
curious why the encoding works differently.
Regards,
Brian.
|