From: Nathaniel G. A. <nat...@ya...> - 2003-04-30 23:56:32
|
--- Dan Choi <cho...@ho...> wrote: > I've noticed that it is possible to create a chart using a JSP and have > created one myself that way. The reason being is I didn't want the chart to > appear in a new window (like a Servlet does), but appear in my navigation > frame. This typically works, like in the example you provided in the online > guide, but it doesn't work when you have already used a JSP to draw the > navigation. Because my JSP has already called the getWriter() method, when > the getOutputStream() method is called by ServletEncoderHelper it throws an > IllegalStateException. > yes. Generating charts directly from a JSP is generally not a good idea because of this. If you leave a space on the end of a line you will get an error as the outputStream has already been committed. A servlet does not have to appear in a new window. Simply place an <img src="myChartServlet"> where you want your chart to appear. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |