Women in Technology

Hear us Roar



Article:
  Invoking JavaServer Pages from MIDlets
Subject:   extending the codes to write to database(MySQL)
Date:   2003-08-16 01:47:59
From:   martinlund
Response to: extending the codes to write to database(MySQL)

Hey! Its really quite simple... If the problem is solved :o)
ur code:


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


new code:


os = c.openOutputStream();
os.write(("ID="+myid).getBytes());
os.write(("&Name="+myname)).getBytes());


The & is neccesary to make the recevier able to split up the OutputStream...


Martin