ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Invoking JavaServer Pages from MIDlets
Subject:   extending the codes to write to database(MySQL)
Date:   2003-06-26 20:47:02
From:   anonymous2
How can I extending the codes given to accept ID and Name from MIDlet and store those values in MySQL database via JSP file. Writing a single value to the database is no problem, but if more than one value it appears to store as a concatanate value in a single column instead of separate values in separate columns. eg.ID=krn and Name=Karen, but store in ID column(MySQL database) as krnKaren.



InvokeJSPMidlet.java


os = c.openOutputStream();
os.write((myid).getBytes());
os.write((myname).getBytes());


1 to 1 of 1
1 to 1 of 1