JSR168 Portlet and user-attributes
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > JSR168 Portlet and user-attributes




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    JSR168 Portlet and user-attributes  
Damian Harvey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-14-04 01:50 AM

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.





[ Post a follow-up to this message ]



    Re: JSR168 Portlet and user-attributes  
Damian Harvey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-04 10: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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:57 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register