WebSphere Portal Server - encodeNamespace?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > November 2005 > encodeNamespace?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author encodeNamespace?
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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com