×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    54

    Connect to Servlet or Conncet to MySQL

    Dear Sir/Madam,
    How can I connect to servert(at servlet, I received some data) or connect to MySQL database in widget?
    I am newbie in widget.

    Thanks you,
    With Regards,
    Sweet Sweet

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Connect to Servlet or Conncet to MySQL

    Hi,

    to access you remote MySQL database from within a WRT widget you should have to put up a Servlet (or a proxy page based on any other server side technology) that retrieves the data you want, then formats it in a suitable format (e.g.: XML, JSON, CSV, ..) and finally sends it to your WRT Widget

    Done that, you'll be able to access the Servlet by using XMLHttpRequest object, as also shown in many examples on Forum Nokia Wiki.

    Pit

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    54

    Re: Connect to Servlet or Conncet to MySQL

    Hi Jappit!
    Thanks you for your information! I also want to ask you. How can I send the binary array from servlet to widget? It can be pass from XML?

    If possible, please give me samples or url for references.

    Thanks you for everything,
    Sweet Sweet

Similar Threads

  1. J2ME connect Servlet
    By pencilX in forum Mobile Java General
    Replies: 2
    Last Post: 2010-11-28, 17:30
  2. 7210: Problem when midlet connect to servlet
    By wanning in forum Mobile Java General
    Replies: 10
    Last Post: 2008-05-14, 16:44
  3. Symbian client connect to MySQL server
    By taiffu in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-02-05, 17:42
  4. need help for j2me to connect mysql
    By ctct in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-17, 13:43
  5. Connect MySQL Database
    By ernestkok in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2004-03-22, 09:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •