Hi,
Say I have two (maybe more) servlet filters. Each filter executes a
separate script. For example, the first filter does some
authentication/authorization and a second does some business logic.
Is there no to relatively little cost to Context.enter()/exit() in
each filter? Or would it be worthwhile to Context.open() in the first
filter and leave open for the rest of the filter chain and finally
closing when it returns back down the chain, e.g.
What would you do?
Filter1
Context.open()
//auth
next.doFilter(req, res)
Context.exit()
Filter2
if (something) {
res.sendRedirect(...)
Context.exit()
return;
}
// do something
next.doFilter(req, res
thanks,
-Rob
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino