cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <dar...@dti.net>
Subject Re: MySQL, C2, Tomcat 4.0.1, win2k/xp
Date Tue, 27 Nov 2001 21:29:04 GMT
Don't know if you're still having problems with this or not.

I'm using MySql, C2, and Tomcat 4.0

Not much to it:

* Start the MySql daemon

* Start Tomcat

* Put this into my XSP page:

             <esql:connection>
                 <esql:driver>org.gjt.mm.mysql.Driver</esql:driver>
                 <esql:dburl>jdbc:mysql://localhost:3306/_your_app_</esql:dburl>
                 <esql:execute-query>
                     <esql:query>_your_sql_query_</esql:query>
                     <esql:results>
                         <esql:row-results>
....
                         </esql:row-results>
                     </esql:results>
                     <esql:no-results>
                         <section>Record not found</section>
                     </esql:no-results>
                     <esql:error-results>
                         <section>Database error: <esql:get-message/>
                         </section>
                     </esql:error-results>
                 </esql:execute-query>
             </esql:connection>

* Access the page

Everything seems to work fine.

What problems/errors are you having?


DR




At 09:20 AM 11/26/01 +0000, you wrote:
>I was wondering if anyone had successfully set up MYSQL to work with C2
>under Tomcat 4.0.1? If you can you please send me lengthy and detailed
>instructions as to how to do it please. I'm going insane trying to
>figure it out. 
>
>Thanks for your time 
>Sharat Koya


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message