Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Why do you need to delete that part?
    – Bogdan
    Commented Jan 12, 2021 at 20:33
  • It is needed for a certain business case.
    – obayral
    Commented Jan 12, 2021 at 20:34
  • 1
    @obayral - your approach is completely wrong. The Servlet specification already has a robust mechanism for exactly what you're trying to accomplish. Please review Bogdan's response below. Please post back if you have questions; please be sure to "Upvote" and "Accept " his reply.
    – paulsm4
    Commented Jan 12, 2021 at 21:05
  • @paulsm4 could you tell me why my approach is completely wrong? I have accepted the answer also.
    – obayral
    Commented Jan 12, 2021 at 21:15