Or, more simply, you could take advantage of the Role-based access
control features provided by Struts and Tiles.
Struts supports a 'role' attribute on an action mapping which prevents
that action from being invoked unless the user has the required role. It
also includes some taglib support, such as the logic:present [1] tag's
'role' attribute, which can help with view construction.
Similarly, using Tiles you can use roles to control which page sections
are generated, so you don't need to have access control checking logic
in your actual views.
L.
[1] http://struts.apache.org/1.3.5/struts-taglib/tlddoc/logic/present.html
Caroline Jen wrote:
You may consider to use the Business Rules Engine
-CJen
--- Aftab Vhora <[EMAIL PROTECTED]> wrote:
Hi Frnds,
I m developing one application using struts, in that
I want to set the
access level.
Like Admin shd hv access to all the links, some A
group should hv access
to certain link, group B should hv access to ceratin
link...Though I hv
done that using setting "if" conditions in my JSP.
like if(access_lvl.equals("ADMIN") )
//....something to display or not to
dislpay the link
But the thing is i don want my JSP to be filled with
lots of if
conditions...so I wanna ask you can we have better
solution to this, or
does struts provides solution for this ?
Thanks in adnace....
--
Thanks & Regards,
Aftab Vhora
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]