[jboss-user] [Beginners Corner] - Re: IllegalStateException problem on running jboss

jwenting do-not-reply at jboss.com
Sun Feb 18 03:47:22 EST 2007


one more reason to NOT use scriptlets in JSPs.
All that code belongs in a servlet, NOT a JSP (in fact no Java code at all should be in JSPs).

What you're trying to do is extremely illegal. It will never work. The outputstream is after all private to the JSP and created implicitly when it's first started.
That's a consequence of what JSPs actually are, and how they're turned into Java code before being compiled.

Do your image generation in a servlet, there's no need ever to do this in a JSP.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018456#4018456

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018456



More information about the jboss-user mailing list