I am using a url rewrite filter from tuckey.org/urlrewrite; which using a configuration forwards request to a servlet depending on the pattern of requested URL. Lets say this servlet is AServlet.
Can this AServlet use sendRedirect() call ?
What I understand is that once a forward is executed, response is committed and sendRedirect will throw IllegalStateException?
Currently I am getting lot of IllegalStateException for getSession() calls and sendRedirect() calls in the AServlet.
I need to get rid of these exceptions.
The request is handled by url-rewrite filter which forwards it to a resource(servlet) identified by mappings present with url-rewrite filter.
This resource , depending on some logic may call sendredirect.
Will there be an issue on this call?