tom tom wrote:
Hi,

Can some one let us know, how to define a Custom
filter which would do what the
org.apache.struts2.dispatcher.FilterDispatcher does
but in addition it checks a Cetain attribute (e.g.
Window State) and shows nothing if a certain criteria
is met.

Is this something possible.? or How can I have
pluggable such configuration which does what I want
but also preserving the functionality.

You don't extend the existing filter, you wrap it. Create a new filter which implements the decision logic you need. Your filter will simply skip forwarding the request to the next filter in the filter chain if your criterion is met. Make sure you map your filter ahead of FilterDispatcher, so it gets control first.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to