473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Unable to connect to database through Applet

Hi there,

I am trying to create a web based dataentry application in java applet.
When I create a standalone application using applet the database connectivity works fine. However when I use same applet in web page the, connectivity doesnt work.

my backend is MS Access file and I am using JDBC ODBC database connectivity.

Please advice

Thanks

Yogesh
Dec 18 '07 #1
4 3195
r035198x
13,262 8TB
Hi there,

I am trying to create a web based dataentry application in java applet.
When I create a standalone application using applet the database connectivity works fine. However when I use same applet in web page the, connectivity doesnt work.

my backend is MS Access file and I am using JDBC ODBC database connectivity.

Please advice

Thanks

Yogesh
What happens when you run it from the web page?
Dec 18 '07 #2
What happens when you run it from the web page?

Hi,

When I run it on web page and do any data entry. It doesnt give me any error but doesnt even update data in the MS Access database

Please advice

Thanks

Yogesh
Dec 18 '07 #3
BigDaddyLH
1,216 Expert 1GB
When I run it on web page and do any data entry. It doesnt give me any error but doesnt even update data in the MS Access database
Are you sure? Do you have the Java console window open in your browser? Put some System.out.println statements in your code so that you can see the code's progress, and make sure there is nowhere you catch an exception only to squelch it:

Expand|Select|Wrap|Line Numbers
  1. } catch(SomeException e) {
  2. //silence
  3. }
Generally speaking, connecting to a database from an applet is a bad idea, because most of the time, your database server and your web server are different machines, while applets are restricted to only connecting back to the web server.

I'm biased because I dislike applets, but I would rewrite this as a proper web application with servlets and JSP.
Dec 18 '07 #4
Hi there,

I am trying to create a web based dataentry application in java applet.
When I create a standalone application using applet the database connectivity works fine. However when I use same applet in web page the, connectivity doesnt work.

my backend is MS Access file and I am using JDBC ODBC database connectivity.

Please advice

Thanks

Yogesh
hi,
i know it for frames but can you please tell me the java code for connecting applet to the MS Access on the same machine
Mar 18 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Olivier | last post by:
Hello, Firstly all apologize for my english. Secondly, I've got some problems to connect to a DB2 database with JDBC client. My configuration is : - DB2 8.1 on an AIX server (name rs26...
0
by: Steve Richter | last post by:
I am trying, really trying to use the DB2Connection class provided by IBM to connect to a database on my old reliable as400 from the asp.net web page. When I run the DB2Connection code in my...
0
by: vicky | last post by:
Hello Experts, Trying to run sample Postgrel's ECPG(Embedded SQL)programs on RHL 9.0. Im unable to connect to PostgreSQL database (sirishadb) when I run the program .... # su postgres...
4
by: newladder | last post by:
Hi all, Iam struck with one of the problem with postgres. Please help me out.... Iam trying to connect to connect to postgres database on remote machine with the IP address 10.2.1.4. Iam unable...
21
by: Steve | last post by:
I moved my database from one server to another SQL server. I did a backup and restore of the database. I can connect to the database on server A from my asp.net app but when I try to connect to my...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
8
by: malaysiauser | last post by:
Im new user of PHP and MySQL. I tried to use a script package for my web. I'd created a database. And my connection scripts are as follow; <?php $mysql_host="localhost"; ...
1
by: Markw | last post by:
Hi folks I think I've got a variable problem but not 100% sure. Background: I took the CMS example from chapter 6 in "Build your Own Database Driven Website Using PHP&MySQL" and have attempted to...
3
by: Harmony504 | last post by:
HELP! Setup: PHP5.2.5, IIS 5.1, XP, AS/400 (DB/400 or DB2) I am trying to connect to a DB2 database from my computer. I installed DB2 Connect and set up the ODBC Driver in the Data Source...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.