Originally posted by Eric Pascarello:
'x' is a string
window.opener is normally the reference to the window that opens up a pop up window.
People used to run code sort of like that to trick the browser into letting the parent get closed. I could not tell you if that is the case here without seeing all of the code in that section.
Originally posted by Ben Souther:
Filters will only be invoked on forwards if configured to do so.
Look at SRV.6.2.5 in the servlet spec (link in my signature).
Originally posted by Satya Maheshwari:
You are correct here in the sense that this would result in an infinite loop, but I think the design you are following is not correct. A filter which intercepts a particular page must not forward to the same page.