I am trying to do this:
 
===
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"><page>
  <xsp:expr>com.plumcreek.junk.XSPTest.testMethod()</xsp:expr>
</page></xsp:page>
===
 
Here's the code for the class:
===
package com.plumcreek.junk;
public class XSPTest {
 public static String testMethod(){
  return "<p>This space for rent.</p>";
 }
}
===
 
I am expecting this string: "<p>This space for rent.</p>", but instead, what I get on my page is "&lt;p&gt;This space for rent.&lt;/p&gt;".
 
Is there a way to tell XSP to not tweak the returned string to make it "xml-safe"?
 
Environment: Win2K, jdk1.3.1, cocoon 2.0
 
Larry
 

Reply via email to