cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Please Help me. Including xml file in another xml file
Date Fri, 08 Sep 2000 00:21:12 GMT
"Pratik Machchar" <prat@icenet.net> wrote:
>Sorry for this off topic.
>I searched the mail archive and found lots of information on this topic but 
>none with luck.
>
>Actually I wnat to include on file connectionInfo.sxml
>      <?xml version="1.0"?>
>       <page>
>       <?cocoon-format type="text/xml"?>
>        <connectiondefs>
>         <connection name="cyberoam">
>          <driver>org.gjt.mm.mysql.Driver</driver>
>          <dburl>jdbc:mysql://192.9.203.210/cyberoam</dburl>
>          <username>cyberoam</username>
>          <password>cyberoam</password>
>         </connection>
>        </connectiondefs>
>       </page>
>and want to use it all the places.

Good idea!

>
>when i use
>
><page>
><title>Select IP</title>
>   <util:include-uri 
>href="http://localhost:8080/cyberoam/sql/connectionInfo.sxml"/>
><query connection="cyberoam">select distinct clientip from tblaccesslog 
>order  by clientip </query>
></page>
></xsp:page>
>
>it gives me null pointer exception that no conneciton def is available.

Try using an XML external entity declaration instead.

>One more thing I want to use relative path name not complete url.

You can do that with entities I think.

--
Robin

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message