cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Ross" <>
Subject problems accessing database
Date Fri, 19 Dec 2003 07:38:33 GMT
I am trying to get access to a SQLserver database. I am not sure what the 
problem is.
i have the following line in cocoon.xconf
<dburl>jdbc:microsoft:sqlserver://databaseserver:1433/Soccer Scores</dburl>
I also have the correct driver in the web.xml file.

I am not sure if the above entry is valid as the database name has two words 
- "Soccer Scores".
I am also not aware how to run a query on the database as it is evident i 
would get a syntax error.
eg: Select * from Soccer scores.organisms;
How would i handle this case using the ESQL logicsheet??
I tried writing a sample page to get access to the database but only the 
root element of the xml is produced and closing tag is not present. The 
sample .xsp page is below.
The output produced is
<?xml version="1.0" encoding="UTF-8"?>
<user_info xmlns:mylogic="http://hostname/mylogic/1.0" 

Ive tried looking for answers in mailing lists but could not get it working.
Any help would be greatly appreciated.
Thanks in advance for your time.


               select *
               from results <!-- this would normally be written as Soccer 
                    <hello>HELLO WORLD</hello>





Get less junk mail with ninemsn Premium. Click here

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message