I tried this with tomcat 5.5. And answer is: �Test2� is printed on the page and �After forward� on server. But I am confused If line 4 is executed then why there is no output for line 3? Can anyone explain it?
After the call retun from the requestDispatcher forward method to the calling page the response is invalid. That means you can not write anything to response. But any other codes executed perfectly, but not recommended to do anything after this call in calling page.