| | |
Connecting MIDlet,JSP and mysql database
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
why is JSP middleware? JSP should be used on your front-end... to get the database connection, just get the driver .jar
Wireless Development Tutorial Part II is good starting point for general MIDlet to HTTP connectivity (based upon servlets) it show you how you can send request to server, how it will received and replied to this request through servlet. From here it is only step to build your own application that will send request for database data, servlet receive it, process it and send reply back to your application
Another useful article is Debugging MIDP HTTP Requests
On the end you should download source code for chapter 18 from Kicking Butt with MIDP and MSA, by Jonathan Knudsen, which I consider very best. These examples do not contain any explanation, beside in code comments, so you will have to work out what is going on in the code. However it is very good example as it show use of Threads to maintain connection with server and in doing so avoid connection time out on real device (not emulator as your pc would be presumably connected to internet and have faster connection then average mobile device)
Another useful article is Debugging MIDP HTTP Requests
On the end you should download source code for chapter 18 from Kicking Butt with MIDP and MSA, by Jonathan Knudsen, which I consider very best. These examples do not contain any explanation, beside in code comments, so you will have to work out what is going on in the code. However it is very good example as it show use of Threads to maintain connection with server and in doing so avoid connection time out on real device (not emulator as your pc would be presumably connected to internet and have faster connection then average mobile device)
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Other Threads in the Java Forum
- Previous Thread: JTextArea not showing up.
- Next Thread: Screen Capture Software
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api append apple applet application arguments array arrays automation bi binary bluetooth businessintelligence busy_handler(null) chat class classes client code component database draw eclipse encryption equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop main map method methods mobile netbeans newbie number open-source oracle oriented panel print problem program programming project qt recursion reference replaysolutions repositories return robot scanner screen scrollbar se server set singleton size sms socket sort sql string swing test threads time tree utility windows xor






