| View previous topic :: View next topic |
| Author |
Message |
alicealicia
Joined: 27 May 2009 Posts: 15
|
Posted: Mon Jun 08, 2009 7:11 am Post subject: Retrieve Data From Database |
|
|
I am developing a mobile application in Java Me (MIDP) using the java programming language. I want to retrieve the data from the database at the server. Can anybody help me on this.
I want the user to type in the username to send to the server, and I have done this. Now, I want the server to get the user's input, and then search at the database, and if found, then send the information back to the client mobile phone.
Can anyone help me on this. I really need your help. I am stack and can't find any solution on the Internet. Your help will be appreciated.
Please let me know how to connect to the database, and then query out from the table at the database. Just give me a brief guideline.
I also got problem to import the java.sql.*. Can anybody tell me what is the problem. Does it mean that I need to download something or what. Please advice on this. When I compile the file, it said package java.sql does not exist.
For the admin or those who know, please provide some sample code or example on how to retrieve data from the database. The database can be Microsoft Access or MySQL.
Please do help me on this. |
|
| Back to top |
|
 |
shche123
Joined: 19 May 2009 Posts: 41
|
Posted: Sun Jun 28, 2009 8:34 pm Post subject: |
|
|
SimpleMobileApp.java is available in the %YOUR_APPS%\JavaDB\demo\programs\simplemobile of a JavaDB installation. There is also a readme.html in that directory as well.
Unfortunately it is for CDC and not for CLDC. However, somehow you might be able to make it work...
Let me know if you succeed  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|