Women in Technology

Hear us Roar



Article:
  Security in Struts: User Delegation Made Possible
Subject:   Using tiles to create role driven tabbed-layout?
Date:   2004-08-21 21:55:00
From:   ebegoli
Warner,


In the closeout statement of your otherwise excellent article you mention that:


For example, using the Tiles framework, it is also possible to create a special, tabbed-layout JSP that will hide the tabs that the user is not granted access to; you could create a tag library that provides you the tags for the use in the layout JSP. Just choose the approach which fits your architecture best.


Can you by any chance help me locate the example
that does something like that. I would like to know how to use tiles to dynamically hide/show links to actions accesible by the role (also dynamically created and with delegated rights as your article suggests).


Any help or hint is greatly appreciated.


Regards,
Edmon

Main Topics Newest First

Showing messages 1 through 1 of 1.

  • Using tiles to create role driven tabbed-layout?
    2004-08-22 14:47:28  wernerramaekers [View]

    Edmon,

    the example code i provided does not offer an example of dynamic showing and hiding of links accessible by a role when using a tabbed-layout JSP.

    However, it is quite easy to create this kind of behaviour starting from the tabsLayout.jsp that you get as part of the available layouts in the tiles-documentation.war in the struts-1.1 binary download.

    Oh, and by the way my first name is WErner ;-)

    Cheers,
    Werner