File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about jsp XML syntax and CDATA !

Eric Suen
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a file like this:
<?xml version="1.0"?>
<fo:root xmlns:fo="" xmlns:jsp="">
and I try tomcat 5.0.19 & resin 3.0.6, and the output is:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo=""><fo:block>
The question is, is this the bugs of jsp engine, or the spec need to do
this type decoding? How can I get "<![CDATA[...]]>" as output?
and how to prevent engine decode "&lt;" to "<", use "&amp;"?
seems the engine make the simple things complicated? Should this
decode only happend when context in <jsp:text> element?
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic