Pady Srinivasan <Pady.Srinivasan <at> Heroix.com> writes:

> 
> Assuming you can get a Collection of roles, using jstl,
> 
> <c:forEach items="${requestScope.ROLES}" var="role">
> <c:if test="${role.name == 'myRole'}">
> Do something...
> </c:if>
> </c:forEach>
> 
> 
> Thanks
>  

thanks, but this is about what i have now using the struts iterate tag

i have actually decided to create a console page for each role and

have the consoleAction  decide what page to include in the template.

String incl="defaultConsole.jsp";
if (user.verifyRole("thisrole"))
   incl = "ConsoleThisRole.jsp";
elseif (user.verifyRole("thatrole"))
   incl = "ConsoleThatRole.jsp

CreateTemplate(request, constants.empty, constants.empty, "MasterTemplate.jsp", 
incl);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to