The way
Servlet programming is often taught, an assumption that gets made is that a forward represents the terminiation of execution of a Servlet or JSP. A forward is usualy the last thing you do in a Servlet, when you're learning anyways, so people are often perplexed when you continue to do state management tasks following a forward.
The problem that often arises, is people don't terminate their methods with a return, or proper logic, and when Servlet code is updated, a forward can potentially be used twice. Since the outputstream is closed when a forward is executed, a second forward will trigger the illegal state esception
This is a largely American problem. In Canada, we have IllegalProvinceExceptions, as opposed to state exceptions.
Cheers!
-Cameron McKenzie
[ November 04, 2006: Message edited by: Bear Bibeault ]