You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cengiz Yazgan <ce...@doruk.net.tr> on 2005/10/06 12:46:17 UTC
mysql connection with JSP
Hi everybody
I want to connect a mysql database with jsp code.
Can anybody help me to write a connection string.
Thx.
Cengiz YAZGAN
Sistem Mühendisi/System Engineer
DorukNet
Tel / Phone : +90 212 326 92 00 / 447
Fax : +90 212 227 28 11
E-mail : cengizyazgan@doruk.net.tr
http://www.doruk.net.tr
http://www.doruk.net.tr/english.html
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: mysql connection with JSP
Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.
This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.
The correct procedure is to create a new message with a new subject.
This will start a new thread.
Mark
tomcat-user-owner
Cengiz Yazgan wrote:
> Hi everybody
>
> I want to connect a mysql database with jsp code.
> Can anybody help me to write a connection string.
>
> Thx.
>
>
> Cengiz YAZGAN
> Sistem Mühendisi/System Engineer
> DorukNet
> Tel / Phone : +90 212 326 92 00 / 447
> Fax : +90 212 227 28 11
> E-mail : cengizyazgan@doruk.net.tr
> http://www.doruk.net.tr
> http://www.doruk.net.tr/english.html
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: mysql connection with JSP
Posted by Mark Benussi <ma...@hotmail.com>.
jdbc:mysql://<hostname>:3306/<database>?user=<username>&password=<password>
However on a design front I would never personally look up a database
connection in a JSP. Others may disagree.
-----Original Message-----
From: Cengiz Yazgan [mailto:cengizyazgan@doruk.net.tr]
Sent: 06 October 2005 11:46
To: 'Tomcat Users List'; 'Tomcat Users List'
Subject: mysql connection with JSP
Hi everybody
I want to connect a mysql database with jsp code.
Can anybody help me to write a connection string.
Thx.
Cengiz YAZGAN
Sistem Mühendisi/System Engineer
DorukNet
Tel / Phone : +90 212 326 92 00 / 447
Fax : +90 212 227 28 11
E-mail : cengizyazgan@doruk.net.tr
http://www.doruk.net.tr
http://www.doruk.net.tr/english.html
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org