WebSphere Portal Server - How do I differentiate between an admin user within default.jsp

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2005 > How do I differentiate between an admin user within default.jsp





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 How do I differentiate between an admin user within default.jsp

2005-07-25, 8:20 am

I want to make the toolbar (My Portal, Administartion etc) available only to Admin users - how would I differentiate between different types of users. Ideally I would like to to do
<wps:if admin="yes">
...
</wps:if>
in default.jsp


2005-07-25, 8:20 am

wps:if admin="yes">
...
<<wps:if>>

This bit was missing from the above post.
Maik Weber

2005-07-26, 8:01 am

Well, this is not possible directly.

You can use the Userid indirectly for such a problem.
If the userid starts with admin, then ...

You get the userid by

<%@ page import="com.ibm.wps.engine.RunData" %>

....

RunData rd = RunData.from(request);
String userid = rd.getUser().getUserID();

....

Maik

kkhanz@uk.ibm.com wrote:
> wps:if admin="yes">
> ..
> <<wps:if>>
>
> This bit was missing from the above post.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com