  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Can servlet filter be applied to a method of a Java Bean | Can servlet filter be applied to a method of a Java Bean 2003-09-22 - By mail lily
Back HI, I am new here and I would like to implement the access control concern as a filter.
There are serveral methods like read(...), insert(...), update(...), delete(...) in a Java bean. I want the access control checking is performed right before the execution of each of these methods.
The problems are: 1. Can a filter be applied to a method of a Java Bean? 2. Also I need to pass all the parameters of the method to the access control checking. How to do this? 3. Sometimes a method will be called inside the other method like: update(...) { ... read( ... ) ... } But I do not want the access control checking to be performed before this read method which is nested in the update method. Is there a way to control the flow?
Thanks in advance.
Lily
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
|
|
 |