sdx-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sdx-users] pb with sdxtest


From: m
Subject: Re: [sdx-users] pb with sdxtest
Date: Thu, 17 Feb 2005 18:34:55 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Hi,
sorry, I still have problems with the indexing of only one document.... It's the end of the day, I'm probably feeling too tired... :(
I worked from the sdxtest example

I had the following code in uploadjc.xsp
           <sdx:debug>
<sdx:uploadDocuments base="sdxtruc" dirParam="sdxtruc" include="*.xml"/>
           </sdx:debug>
and in admin.xsp
       <sdxtruc action="uploadjc.xsp">
<sdx:executeSimpleQuery base="sdxtruc" queryParam="sdxtruc" query="sdxall:1" hpp="-1"/> </sdxtruc> and, as I was indexing a folder called "xml", I also had this line
           <documents>
<xsp:attribute name="sdxtruc"><xsp:expr>app+File.separator+"xml"</xsp:expr></xsp:attribute>
           </documents>

this code works perfectly
I made some changes in order to only upload one file and not all the directory You told me to use uploadDocument instead of uploadDocumentSSSS (:)), so here's my new code :

here, I use uploadDocument....
           <sdx:debug>
               <sdx:uploadDocument base="sdxtruc" urlParam="sdxtruc"/>
           </sdx:debug>
this part didnt change :
       <sdxtruc action="uploadjc.xsp">
<sdx:executeSimpleQuery base="sdxtruc" queryParam="sdxtruc" query="sdxall:1" hpp="-1"/> </sdxtruc> this one changed :
           <documents>
<xsp:attribute name="sdxtruc"><xsp:expr>app+File.separator+"xml"+File.separator+"anum.xml"</xsp:expr></xsp:attribute>
           </documents>

I only got this result :
unknown protocol: cjava.net.MalformedURLException: unknown protocol: c
or a blank page (no document uploaded and the db is still empty)

what did I do wrong ?
Should I use relative paths (so as to avoid the use of c: ) ?
Did I forget some parameters ?
(I made the assumption that in my file I had only one "projet" so I didnt need to use any fragment)

thanks if you can help me again or if you have another example that can help me more.
JC






reply via email to

[Prev in Thread] Current Thread [Next in Thread]