You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2001/10/17 18:58:51 UTC

DO NOT REPLY [Bug 4239] New: - Error while generate from JSP

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4239>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4239

Error while generate from JSP

           Summary: Error while generate from JSP
           Product: Cocoon 2
           Version: 2.0rc1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: serg_main@yahoo.com


Error while generate from JSP. Place this JSP in /docs/samples/jsp/.

If request /docs/samples/jsp/test.jsp - OK.
If request /jsp/test - throw exception org.apache.cocoon.ProcessingException: 
SAXException JspGenerator.generate(): org.xml.sax.SAXParseException: An invalid 
XML character (Unicode: 0xfe) was found in the element content of the document.


JSP:
<%@page 
contentType="text/html; charset=UTF-8" 
language="java"

%><%

	String s = "\u041d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e";

%>
<page>
<content>
Test string: <Alt><%= s %></Alt>
</content>
</page>
<<end jsp>>

's' is russain string in utf-8

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org