Re: Connetion between Tomcat MySQL

2003-09-09 Thread Amy Cheung
so what kind of connection is best? using the
J/Connector or the OCBC one?

--- Bill Barker [EMAIL PROTECTED] wrote:
 Assuming that you aren't using JDBCRealm, then it
 should be enough to put
 the jar file in $TOMCAT_HOME/lib/apps.  If you are
 using JDBCRealm, then
 place it in $TOMCAT_HOME/lib/common.
 
 Setting the CLASSPATH is evil ;-).
 
 Amy Cheung [EMAIL PROTECTED] wrote in
 message

news:[EMAIL PROTECTED]
  Hi,
 
  I am using Tomcat 3.3.1 and MySQL 4.0 in Window
 XP.
  MySQL engine is running. When I run my jsp, it
 stated
  the error that import com.mysql.Driver not
 found.
  Anyone know how to install the driver properly? I
 read
  something about setting the class path. But where
 to
  set? I don't know much about the MSDOS command and
  specify the envirnomental variables in Window XP.
 I
  download both the J/Connector  OCBC driver from
  MySQL. Where should be the exact location to
 store?
 
  Thanks,
  Amy Cheung
 
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
  http://sitebuilder.yahoo.com
 
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connetion between Tomcat MySQL

2003-09-09 Thread Amy Cheung
--- Bill Barker [EMAIL PROTECTED] wrote:
 Assuming that you aren't using JDBCRealm, then it
 should be enough to put
 the jar file in $TOMCAT_HOME/lib/apps.  If you are
 using JDBCRealm, then
 place it in $TOMCAT_HOME/lib/common.
 
 Setting the CLASSPATH is evil ;-).
 
 Amy Cheung [EMAIL PROTECTED] wrote in
 message

news:[EMAIL PROTECTED]
  Hi,
 
  I am using Tomcat 3.3.1 and MySQL 4.0 in Window
 XP.
  MySQL engine is running. When I run my jsp, it
 stated
  the error that import com.mysql.Driver not
 found.
  Anyone know how to install the driver properly? I
 read
  something about setting the class path. But where
 to
  set? I don't know much about the MSDOS command and
  specify the envirnomental variables in Window XP.
 I
  download both the J/Connector  OCBC driver from
  MySQL. Where should be the exact location to
 store?
 
  Thanks,
  Amy Cheung
 
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
  http://sitebuilder.yahoo.com
 
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connetion between Tomcat MySQL

2003-09-09 Thread Amy Cheung
OK. Thanks. It can connects to the database now. 

Here is a minor problem. The results I obtained from
the query is a ResultSet, rs. I keyed in this code:
while (rs.next())
{
System.out.print(rs.getString(RoomID);
}
In the Tomcat server, it printed the results that I
wanted. How to incorporate that results into the html
code to show on the web page? I tried but it's give me
error that cannot convert ResultSet into String.

Thanks,

Amy Cheung

--- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 Any JDBC driver for mysql (that works for you) will
 do.
 
 Amy Cheung wrote:
 
 so what kind of connection is best? using the
 J/Connector or the OCBC one?
 
 --- Bill Barker [EMAIL PROTECTED] wrote:
   
 
 Assuming that you aren't using JDBCRealm, then it
 should be enough to put
 the jar file in $TOMCAT_HOME/lib/apps.  If you are
 using JDBCRealm, then
 place it in $TOMCAT_HOME/lib/common.
 
 Setting the CLASSPATH is evil ;-).

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Connetion between Tomcat MySQL

2003-09-08 Thread Amy Cheung
Hi,

I am using Tomcat 3.3.1 and MySQL 4.0 in Window XP.
MySQL engine is running. When I run my jsp, it stated
the error that import com.mysql.Driver not found.
Anyone know how to install the driver properly? I read
something about setting the class path. But where to
set? I don't know much about the MSDOS command and
specify the envirnomental variables in Window XP. I
download both the J/Connector  OCBC driver from
MySQL. Where should be the exact location to store?

Thanks,
Amy Cheung

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running JSP....new to Tomcat 5.0

2003-09-07 Thread Amy Cheung
Hi,

How can I setup the server configuration using TOMCAT
Ver5.0? I follow the same method for TOMCAT Ver3.0 but
it give error as below: 
SEVERE: Cannot find msg asso. with key
stdContext.resourcesStart Document base does not
exit or is not a readable directory 

What is the correct to initialize the docBase? My
folder is stored in C:\SLF_proj. Where to put the code
in server.xml?

Thks!!! 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]