WebSphere Commerce suite - Role description

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > November 2005 > Role description





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 Role description

2005-11-02, 5:57 pm

Does anyone knows how to retrieve the description of a role from a RoleDataBean? How to use it in a jsp with the iDataBeanKeyRoleId?

2005-11-03, 7:51 am

RoleDataBean is primarily for Internal use only. However, if you need to obtain the role description you could do it the following way.

<jsp:useBean id="roleDataBean" class="com.ibm.commerce.user.beans.RoleDataBean" scope="page">
</jsp:useBean>
<%
roleDataBean. setDataBeanKeyRoleId(iDataBeanKeyRoleId)
;
DataBeanManager. activate(roleDataBean,request,response);

out.println(roleDataBean.getDescription());
%>

Hopefully that should work. Let me know if you have any problems.
-Balaji Raghavan

2005-11-03, 7:51 am

Thanks, works fine!
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com