javax.servlet.Filter blocks iFrame request
-
07-07-2021 - |
سؤال
My application implements the javax.servlet.Filter
interface. But I've got a weird case. One of my ActionBean
instances is returning response to one jsp, this jsp contains an <iframe>
tag. in this tag, src
attribute has same request uri as this jsp but with change in param values. But the uri inside <iframe>
is not being requested.
I've tried to remove Filter
from my application. Then it works fine. So what should I do while using Filter
interface ?
المحلول
Issue solved...
The thing I need to take care about is I can not Redirect
the request. I've to forward
it. And it was out of my mind.
Filter
can not harm your request if you use it wisely.
لا تنتمي إلى StackOverflow