Hi,

Solved the problem. Following an excerpt from my custom advertisement block which 
should be displayed only for a particular url pattern:
    public boolean getDisplayed(Page page) {
  |         String advertisementUrl = page.getRequest().getServletPath();
  |         Level level = secGetLevel(advertisementUrl + "::");
  |         
  |         return level.getName().equals("READ") ? true:false;
  |     }

For this, I had to modify Page.java so I get the request with the url pattern 
(servletPath).

Following the security entry of an advertisement block (jmx-console):
<security>
  |    <permission group="*" pattern="/support/.*::" level="READ"/>
  | </security>

Regards,

Cyrill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845735#3845735

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845735


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to