WebSphere Portal Server - JSR168 Portlet and user-attributes

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2004 > JSR168 Portlet and user-attributes





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 JSR168 Portlet and user-attributes
Damian Harvey

2004-07-13, 8:50 pm

Hi,

Does anybody know how to set the user-attributes defined in a JSR168
Portlet? For example my Portlet.xml contains :

<portlet>
....
</portlet>
<user-attribute>
<description xml:lang="EN">Some description</description>
<name>user.loginid</name>
</user-attribute>

My Portlet (a JDE Portlet) tries to access this attribute with :

Map map = (Map)renderrequest.getAttribute("javax.portlet.userinfo");

and then :

String s2 = (String)map.get("user.loginid");

How do these variables get set? It doesn't seem to be from the Portlet.xml

Help!

Damian.
Damian Harvey

2004-07-19, 5:58 pm

anybody?

Damian Harvey wrote:

> Hi,
>
> Does anybody know how to set the user-attributes defined in a JSR168
> Portlet? For example my Portlet.xml contains :
>
> <portlet>
> ....
> </portlet>
> <user-attribute>
> <description xml:lang="EN">Some description</description>
> <name>user.loginid</name>
> </user-attribute>
>
> My Portlet (a JDE Portlet) tries to access this attribute with :
>
> Map map = (Map)renderrequest.getAttribute("javax.portlet.userinfo");
>
> and then :
>
> String s2 = (String)map.get("user.loginid");
>
> How do these variables get set? It doesn't seem to be from the Portlet.xml
>
> Help!
>
> Damian.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com