As far as I know, appfuse 2.0.2 has switched from acegi to spring security
(spring security = acegi)
2008/9/26 Greenhorn2005 <[EMAIL PROTECTED]>
>
> Hello all,
>
> After reading all the old queries and articles , I still find problem. I
> am
> using Appfuse 2.0.2 with Struts 2 integration. I have a link which is
> supposed to be displayed with user role ROLE_USER and not displayed when
> the role of the user is other than ROLE_USER .
>
> so far as i know I have written this code in my jsp page.
>
>
> <%@ include file="/common/taglibs.jsp" %>
>
>
> <html>
> <head>
> <title>Sample</title>
>
> </head>
>
> <body>
> <p><fmt:message key="mainMenu.message"/></p>
>
>
> <ul class="glassList">
>
> <c:if test="${pageContext.request.remoteUser != 'admin'}">
> <acegijsf:authorize ifAllGranted="ROLE_USER">
> <li>
> "<c:url value='/hotels.html' "> <fmt:message
> key="hotelList.heading"/> (For HotelUser)
> </li>
> </acegijsf:authorize>
> </c:if>
> <c:if test="${pageContext.request.remoteUser != 'admin'}">
> <acegijsf:authorize ifAllGranted="ROLE_TRAVEL_AGENT">
> <li>
> "<c:url value='/travel.html' "> <fmt:message
> key="hotelList.heading"/> (For TravelUser)
> </li>
> </acegijsf:authorize>
> </c:if>
>
>
> </ul>
> </body>
> </html>
>
> So far i have done this. Is there anything else i miss so
> far......
> thanks for any pointers.
>
> Green Horn.
> --
> View this message in context:
> http://www.nabble.com/Restricting-access-to-link-based-on-role-of-the-user.........-tp19684791s2369p19684791.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>