struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Baranski" <list-subscripti...@secmgmt.com>
Subject Custom Property Tag
Date Tue, 06 Oct 2009 14:36:48 GMT
I need to show certain fields to certain users based on permissions
(per-user).  I was going to create a custom s:property tag, which would
access an IUser object on the value stack.  In the tag, it will do:

If (getUser().canAccess('property_name'))
Then
Render the tag/value
Else
Render nothing

I cannot figure out how exactly to get the user object on the value stack,
and which file contains the property tag implementation.  Could someone
suggest where to start?

Thanks,
Mike.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message