This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am very puzzled by this: After the struts action completes and forward is returned a few more calls are made by struts to complete the response, however an IllegalStateException is thrown in org.apache.catalina.core.ApplicationDispatcher.doForward(...) method with the usual message: Cannot forward after response has been commited. Then control returns back to my action which at that point completes successfully, and the result from jsp page is returned. Any ideas would be appritiated. Thanks.
U should not play with response once u have called new ActionForward () ,becoz internally it commits the response and there after u cant include,redirect/dispatch again .
so let me know if u have done something like that
Joined: Feb 04, 2004
As a matter of fact yes. The application was trying to redirect the user to the logon page the first time around, after the forward was already there to take the user to the first page in the application. For now I just put in a cheap fix - exiting out of the action in the beginning if it is the first attempt in the current session to load the page, but please feel free to suggest better approaches. Thanks