Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000864 [Resin] minor always 01-14-06 06:49 02-01-06 13:55
Reporter agrebnev View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.18 Product Version 3.0.15
  Product Build
Summary 0000864: Bug with encoding of include inside JSP2.0
Description 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 [^]
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0000836)
ferg
02-01-06 13:55

jsp/18ek
 

- Issue History
Date Modified Username Field Change
01-14-06 06:49 agrebnev New Issue
02-01-06 13:55 ferg Note Added: 0000836
02-01-06 13:55 ferg Assigned To  => ferg
02-01-06 13:55 ferg Status new => closed
02-01-06 13:55 ferg Resolution open => fixed
02-01-06 13:55 ferg Fixed in Version  => 3.0.18


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker