Hi,
I have a struts based application and using Filters for authorization.
If the user is not authorized, I have to redirect the user to a third
party application.
For that, in the doFilter method, I have added the redirection logic (I
am using response.sendRedirect to take the user to the third party
application.)
Now, the issue is that whenever I call my app url I get the following
exception though I am redirected to the third party application. Is
there a way to avoid this exception?
"java.lang.IllegalStateException: Cannot forward a response that is
already committed"
Is there a way to avoid this exception?
My web.xml has the following entry:
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
Thanks in advance,
Bharat
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is not
liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]