cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <Larry.Mead...@plumcreek.com>
Subject Help: xml from a class with XSP
Date Fri, 29 Mar 2002 23:38:51 GMT
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
 

Mime
View raw message