This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: JSP XML syntax and well-formedness
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
One of the TagUnit users has been having some problems testing some content that gets generated from one of their tags. The test JSP is written using the JSP XML format instead of the regular syntax and it turns out that this was the problem.
The moral of the story? When using the JSP XML format to write your pages, don't forget to wrap up any content (that isn't well-formed XML, such as HTML) inside CDATA sections so that the JSP compiler ignores it. Alternatively, just use the much more succinct regular JSP format.