Can servlet filter be applied to a method of a Java Bean

mail lily <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
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 [email 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.