tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Colantoni" <alessandro.colant...@gmail.com>
Subject Permission Taglib in Mandragora framework
Date Tue, 16 Oct 2007 22:35:16 GMT
Mandragora is an open source project focused on providing an extensible
framework to build the business layer of java applications.
http://mandragora.sourceforge.net

The Mandragora Permission Module is a module that deals with user and
permissions.
http://mandragora.sourceforge.net/permissions.html

In this module is available a taglib with two tags that evaluate a
condition, that if results to be true, the nested body content of this tag
will be evaluated, while if it results to be false the nested body content
of this tag will be skipped.
The condition is based on the permission that the logged user has, and on
the list of permission specified by tag attributes, that the user must have
to be authorized .

for example:

<%@ taglib uri="/WEB-INF/permissions.tld" prefix="perm" %>

<perm:present list="p1, p2, p4">

        nested body

</perm:present>

nested body will be evaluated just if the logged user has at least one of
the permissions whose key be the string "p1" or "p2" or "p3".

http://mandragora.sourceforge.net/permissions.html#present%20tag

I hope this two tags can help tomcat users to manage permissions in their
jsp.

Thanks in advance for your interest.

Alessandro Colantoni

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message