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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...