OS: Windows XP - for development
TC: 4.1.18
JA: 1.4.1_01
I was under the impression that after calling RequestDispatcher.forward the
method would return and all subsequent processing would cease. However, this
apparently isn't the case.
For instance, when a user logs on successfully, we attach an object to the
user's session and forward to the last known uri, but if the login failed, we
forward the request back to the login page with invalid fields attached to the
request. The logic kinda goes like:
if successful login {
attach user info to session
forward to last known uri
}
attach invalid fields to request
forward to login page
The behavior we're seeing is that the 'forward to login page' fails with an
IllegalStateException (Cannot forward after response has been committed).
So what's up? Are we wrong to assume that a method effectively 'returns' after
a forward and we need to add return statements after forwards or is there
something we're missing altogether?
Thanks.
Jason
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>