Please look into the generated java code. There should be no space between <util:expr> and <xsp:expr>.

The reason is that the whitespace is not ignored and during compilation of the XSP, the method calls that gets generated from <util:expr> <xsp:expr> will erroneous.

 

Regds,

Chiths

 

accordia, inc

34347 Maybird Circle

Fremont, CA 94555

650 279 1137

[EMAIL PROTECTED]

 

The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Accordia Inc. is neither liable for the proper and incomplete transmission of the information contained in this communication nor for any delay in its receipt

 

-----Original Message-----
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Help: xml from a class with XSP (thanks..and a note)

 

Thanks, it works!

 

Can you spot the difference between the two code fragments? The first one works, the second does not.

 

This works:

===

<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:util="http://apache.org/xsp/util/2.0">
 <page>
  <util:include-expr>
   <util:expr><xsp:expr>com.plumcreek.junk.XSPTest.testMethod()</xsp:expr></util:expr>
  </util:include-expr>
 </page>
</xsp:page>

===

 

This does not:

===

<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:util="http://apache.org/xsp/util/2.0">
 <page>
  <util:include-expr>
   <util:expr> <xsp:expr>com.plumcreek.junk.XSPTest.testMethod()</xsp:expr></util:expr>
  </util:include-expr>
 </page>
</xsp:page>

===

 

There is a single space between <util:expr> and <xsp:expr> in the second one. Touchy, touchy! ;-)

 

Thanks again.

Larry

>>> [EMAIL PROTECTED] 03/29/02 05:03PM >>>

 

If u use just xsp:expr, it will treat the o/p as parsed  string , if you require the contents to be treated as a XML fragment, you need to do as listed below

Include util logic sheet and use the <util:* >tags

===

<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:util="http://apache.org/xsp/util/2.0"><page>
<util:include-expr><util:expr><xsp:expr> com.plumcreek.junk.XSPTest.testMethod()</xsp:expr></util:expr></util:include-expr> 

</page></xsp:page>
===

Reply via email to