Solved

Need to detect values in an Access DB from a JSP Page.

Posted on 2004-08-02
8
186 Views
Last Modified: 2013-11-24
I have a request at work to build an alert system that will generate dynamic content on ASP pages as well as JSP pages.  

I had an idea that I could use an Access back end to store the content and an on/off flag.  This will work great for the ASP side, but how would I implement it on the JSP side?

Can JSP's read Access DB's?

Barry62
0
Comment
Question by:Barry62
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 11693374
Yes. Use JDBC, but you'd be better off with a superior db - MySQL or PostGresql
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11693382
0
 
LVL 8

Author Comment

by:Barry62
ID: 11695335
OK, I'll try it.  

One question:  How does the servlet know where the database is located?

Barry62
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 11699967
> How does the servlet know where the database is located?

you specify the database to connect to using the connect string.

http://www.javaalmanac.com/cgi-bin/search/find.pl?words=jdbc
0
 
LVL 8

Author Comment

by:Barry62
ID: 11703204
Yes, objects, I know about connection strings.  But from the example that CEHJ provided, I don't see anything that would suggest that the Access database can be anywhere but on the same server, in the same directory as the java code.

My Access database will live on a completely different server than the java servlet.

Can I not do it this way?

Barry62
0
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 11711043
you'll need to move your access database to the same server, or use a different database.
0
 
LVL 8

Author Comment

by:Barry62
ID: 11725891
Thanks.   was afraid I would have to do that, but hoping there was another solution.

Oh, well.  

0
 
LVL 92

Expert Comment

by:objects
ID: 11731480
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 50
HashTable highest marks enumeration alternative 9 48
spring jars download 1 53
ejb example issues 3 53
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question