How to I output from a Servlet to a MIDlet?

Soldato
Joined
12 Sep 2003
Posts
11,215
Location
Newcastle, UK
Hello all. :)

I have setup a small application which via J2ME and the use of Forms on the screen, I can connect to a Servlet which runs SQL Statements on a database and returns the results.

However, for one of my options on the Form I have a ChoiceGroup.POPUP (which is basically a dropdown list). What I would like is to populate this with the values from a column in my table. I have managed to get the Servlet to return the values straight to the screen, so I know the query is correct, etc.

But how do I now get these values it returns outputted from the Servlet and into this dropdown list?

I'm stuck and can't seem to figure it out. :(

I think I'll have to open the connection when the Form is loaded and have it run the query. But I'm stuck with the DataInputStream, etc. Can't get the code right.


Thanks for any help!
 
Back
Top Bottom