On Fri, 10 Dec 2004 08:22:12 -0400, Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: >It says you have attempted to forward after a response has been commited. >Can you post some code related to this error ?
yes here's the code involved with the problem (at least this is the code that's giving the error. It's inside a controller class. RequestDispatcher showDispatcher = req.getRequestDispatcher(showService); if (showDispatcher != null) { System.out.println("before crash"); showDispatcher.forward(req, res); System.out.println("after crash"); } the error is occuring on the "showDispatcher.forward(req, res);" line. What's weird if it was already forwarded then the taskDispatcher should be null. In which case this code should not fire at all. When Tomcat is run from commandline this is exactly what happens, and no errors. But when it's run from within Netbeans the following error is outputted to the browser window. type Status report message /Profiler_Test/servlet/TSIController.TSIController description The requested resource (/Profiler_Test/servlet/TSIController.TSIController) is not available. and the console output has this error java.lang.IllegalStateException: Cannot forward after response has been committed I find it odd that it works fine from commandline, but fails inside of netbeans. Dan McMillan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]