Replacing _wsSess.getUser() in user/main.jsp

Hello all. On the main menu for the end user, I would like to display the end users name instead of the account Id. It looks like the account Id is being returned as a string in the jsp from a call to the session via getUser(). Is there a way to get a specific user attribute in the jsp code? I would prefer to get it modified..

Thanks!

Jim

[359 byte] By [JimBeard] at [2007-11-26 12:02:04]
# 1
anyone know?
JimBeard at 2007-7-7 12:26:18 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Hi I'd also like to know this.What I want is to display the preferred name of a user that is stored on a resource.
MarkNienaber at 2007-7-7 12:26:18 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

Found this in the FAQ on the Sharespace

SUBJECT:

How to present the end user's fullname in the user interface.

QUESTION:

I'm trying to make the end user pages welcome a user with his/her full name rather

than the accountId.

I've tried modifying the user/main.jsp page, but it doesn't seem to work and I

prefer to not have to modify any jsp pages for future ease of upgrade.

ANSWER:

One way to do so is to put your welcome message into the "End User Menu" userform,

where the user view is available for referencing:

<Property name='subTitle'>

<concat>

<s>Welcome, <b></s>

<ref>waveset.attributes.firstname</ref>

<s> </s>

<ref>waveset.attributes.lastname</ref>

<s></b>. Please select one of the options below:</s>

</concat>

</Property>

Note that you will still need to edit the listed jsp page and comment out the

default welcome message:

<!--<p class="subtitle"><%= logged_str %>

-->

MarkNienaber at 2007-7-7 12:26:18 > top of Java-index,Web & Directory Servers,Directory Servers...