This content has been marked as final.
Show 2 replies
-
1. Re: How to precheck authorization
mikefinn Oct 28, 2003 5:47 PM (in response to jimbrady)Jim,
Not sure if there is a way to do this by actually calling the links in question on every question - at least not without alot of work. This would be a fairly costly approach, anyway.
A better way to do this is to use a guard in the JSP, to decide whether to show the link or not, based on the user being in the required role. You can do this by using the method isUserInRole(String role), or by creating a custom tag, which has an attribute "role".
<lib:linkguard role="admin">
<link....../>
</lib:linkguard>
Mike -
2. Re: How to precheck authorization
jimbrady Nov 19, 2003 4:07 AM (in response to jimbrady)Thanks,
that is what I have done in the end but I was hoping to avoid that as it means defining the security in two places instead of one.
Jim Brady