RSS Forums RSS

servlet +tomcat 5.0.28+access database+problems

Please support our JSP advertiser: Programming Forums
Reply
Posts: 29
Reputation: rohitrohitrohit is an unknown quantity at this point 
Solved Threads: 2
rohitrohitrohit's Avatar
rohitrohitrohit rohitrohitrohit is offline Offline
Light Poster

servlet +tomcat 5.0.28+access database+problems

  #1  
Sep 29th, 2008
hi all
new to tomcat..
i installed tomcat on c:/tomcat 5.0.28 and c:\j2sdk1.4.1_07. i run my hello world servlet ,did all stuff making diretories,web.xml for running a servlet .it execute on my system.

i search for this in google,but i don't understand !!!!
but if my servlets are using or want to connect to ms-access database then i have no idea .how to configure or connect my servlets to database.?

from rohit sharma
Last edited by rohitrohitrohit : Sep 29th, 2008 at 3:39 am. Reason: clearing my question for reading...
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,143
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 121
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: servlet +tomcat 5.0.28+access database+problems

  #2  
Sep 29th, 2008
Have you tried connecting to a database via a Normal Java program before jumping to Servlets ???
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote  
Posts: 3,460
Reputation: peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold 
Solved Threads: 412
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: servlet +tomcat 5.0.28+access database+problems

  #3  
Sep 29th, 2008
Java Sun JDBC Basics tutorial, what more you need? Don't forget to get proper drivers for that crappy database of Microsoft (sorry I just do not like Access).

I do not really understand why people do not use free available MySQL Community Server
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote  
Posts: 1,143
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 121
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: servlet +tomcat 5.0.28+access database+problems

  #4  
Sep 29th, 2008
For MS Access I think you do not have a choice but to use the JDBC-ODBC Bridge.
<EDIT> At least thats what I thought before I came across this page </EDIT>
Also if you would like to connect to your database with out creating a DSN by using the following connection string:-

"jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ={PATH_TO_MDB_FILE}"

Just replace {PATH_TO_MDB_FILE} with the absolute path to your MS Access file.

By the way why are you using such an old version of the JDK ???

I do not really understand why people do not use free available MySQL Community Server

I can round up all the possible reasons from that in word "IGNORANCE".
Last edited by stephen84s : Sep 29th, 2008 at 2:30 pm.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote  
Posts: 7,398
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 439
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: servlet +tomcat 5.0.28+access database+problems

  #5  
Oct 2nd, 2008
Originally Posted by peter_budo View Post
I do not really understand why people do not use free available MySQL Community Server

Originally Posted by stephen84s View Post
By the way why are you using such an old version of the JDK ???

I can round up all the possible reasons from that in word "IGNORANCE".
Software development is not all roses; there are instances wherein the project mandates you to use / build on the infrastructure they already have. DB2 is not that good, the same with SQL Server 2005. Access doesn't even feel like a real database, but then again, I have worked on migration projects or projects which already had critical data in their legacy databases, migrating which would have cost a *fortune*! [I hope people realize that migrating data isn't just taking CSV dumps and importing it, right?] So maybe a few more options rather than just *ignorance* would be more like it. :-)

Oh and BTW, when projects related to real money are involved, MySQL isn't even there; the market here is dominated by age old tried and tested database vendors like Oracle, Sybase and DB2. And please let me not hear about how real world high traffic sites like YouTube and message boards use MySQL. No one gives a damn if a few screw ups happen when you are creating a thread, making a post or uploading a video. But when real world money transactions are involved...
I don't accept change; I don't deserve to live.

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.

-- Eric Naggum RIP :-(
Reply With Quote  
Posts: 3,460
Reputation: peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold 
Solved Threads: 412
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: servlet +tomcat 5.0.28+access database+problems

  #6  
Oct 2nd, 2008
Originally Posted by ~s.o.s~ View Post
Access doesn't even feel like a real database, but then again
I'm not sure she is not on microsoft pay book

Originally Posted by ~s.o.s~ View Post
Oh and BTW, when projects related to real money are involved, MySQL isn't even there; the market here is dominated by age old tried and tested database vendors like Oracle, Sybase and DB2. And please let me not hear about how real world high traffic sites like YouTube and message boards use MySQL. No one gives a damn if a few screw ups happen when you are creating a thread, making a post or uploading a video. But when real world money transactions are involved...

I'm sure that large projects involve other databases then MySQL. However you have to admit that it is largely used by smaller and medium size companies. Secondly it one of the "have" skill/knowledge when you looking for job as far I seen on job offers in UK. And lastly I still consider to be better starting option then Access as rohitrohitrohit is beginner
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote  
Posts: 1,143
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 121
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: servlet +tomcat 5.0.28+access database+problems

  #7  
Oct 2nd, 2008
Well I agree with ~sos~ as far as maintaining compatibility with legacy systems is concerned, but if we look at the current context, the thread starter I do not think is dealing with such critical systems and sounds more like a beginner to Java, so its got to be Ignorance .

<EDIT> @Peter Budo's post ... didn't see it, damn I should learn to refresh my pages more often
And yes I agree Small and Mid-Size firms prefer going for MySQL, an example is the firm which employs me has got 70% its critical data in MySQL DBs.
Last edited by stephen84s : Oct 2nd, 2008 at 4:16 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the JSP Forum
Views: 1689 | Replies: 6 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:29 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC