Mantis - Resin
Viewing Issue Advanced Details
864 minor always 01-14-06 06:49 02-01-06 13:55
agrebnev  
ferg  
normal  
closed 3.0.15  
fixed  
none    
none 3.0.18  
0000864: Bug with encoding of include inside JSP2.0
I have the following JSP2.0 tag


public class JSP20Tag extends SimpleTagSupport {


        public void doTag() throws JspException, IOException {


                //...


                // invoke body content
                JspFragment body = getJspBody();
                String bodyContent = null;
                if ( body != null ) {
                        StringWriter sw = new StringWriter();
                        body.invoke(sw);
                        bodyContent = sw.toString();
                }


                //...


        }
}


If inside this tag I have some jsp:include, the encoding of the include is incorrect (all non-ASCII symbols are broken).


This behaviour is ONLY in case of using body.invoke with my own StringWriter. In case of using body.invoke(null) it is OK.

--
Andrey Grebnev
http://www.jroller.com/page/agrebnev [^]

Notes
(0000836)
ferg   
02-01-06 13:55   
jsp/18ek