-----Original Message-----
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: Re: inserting XML fragments in XSP


On 02.Jun.2003 -- 04:10 PM, Mato Mira, Fernando wrote:


From: Christian Haul [mailto:[EMAIL PROTECTED]


<error-text><util:include-expr expr="errortext"/></error-text>


I get a ProcessingException "Content is not allowed in prolog"



Strange, could you post a complete page?


<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page language="java"
 xmlns:xsp="http://apache.org/xsp";
 xmlns:util="http://apache.org/xsp/util/2.0";>

 <xsp:structure>
   <xsp:include>org.apache.avalon.framework.parameters.*</xsp:include>
 </xsp:structure>

 <page>
   <xsp:logic>
       try {
     String errortext = parameters.getParameter("error-text");
     <error-text><util:include-expr expr="errortext"/></error-text>
       } catch (ParameterException e) {
          // parameter not found - no error
       }

       try {
     String infotext = parameters.getParameter("info-text");
     <info-text><util:include-expr expr="infotext"/></info-text>
       } catch (ParameterException e) {
          // parameter not found - no info
       }
   <selectdb/>
   </xsp:logic>
 </page>
</xsp:page>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to