User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 403,235 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,074 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting

Please help me in connecting JSP to MySql

Join Date: Mar 2007
Posts: 7
Reputation: A Yasir is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
A Yasir A Yasir is offline Offline
Newbie Poster

Re: Please help me in connecting JSP to MySql

  #5  
Mar 30th, 2007
Hello !!
Thankx for all ur reply's. Actually i m very new to this jsp programming , i dont really know much abt all this, just followng a few books and tutorials to make it work, but i think u r right on all that they used the older versions that is not even available online, and may be i m having version incompatibility or version conflict problem.

Anyways can anyone tell me that if i am using apache-tomcat-5.5.23, so do i still need to install apache server separately and make connection with tomcat later on??

As I m using different working codes from some books and websites, they usually give me error on my connection string and some root errors like:

org.apache.jasper.JasperException: Unable to compile class for JSP:

org.apache.jasper.JasperException: Communication link failure: java.io.EOFException, underlying cause: null

My connection string is

Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8009/login? user=root&password=asma");

Root would be the default username as i haven't set it and "asma" would be the password that i set wile installing MySQL server.

My all other jsp pages working fine , only having problem in connecting with database.

I have tried ur suggestion of putting the files as well as seting CLASSPATH but neither of it worked.

I'll be thankful if anyone can help in this regard
Reply With Quote  
All times are GMT -4. The time now is 5:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC