--- On Tue, 8/19/08, Haulyn R. Jason wrote:
> When our client login our system, I can create a List
> contains privilege objects, it includes properties:action 
> name and namespace, without a custom tag, how can I check 
> whether this member should see the link? I mean, I do not 
> know how to do it without writing Java code.

I didn't say without writing a custom tag, I said without writing Java; the 
same functionality could be in a JSP 2.0 tag file. And I didn't say it was the 
*best* idea, it's just another option.

It doesn't matter, but I don't really get your access scheme; personally I 
would have just assign a collection of roles to a user and the tag would check 
a user versus a role, so in pseudo-code a "guarded link" would look like:

<foo:userHasRole role="admin">
  <a href="admin">Admin</a>
</foo:userHasRole>

This is only reasonable if there are a small-ish number of places this is 
needed, otherwise as somebody else suggested it might be better to just render 
a completely different page.

Dave


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

Reply via email to