Discussion Board

Results 1 to 2 of 2

Thread: changing URL

  1. #1
    Registered User padmashree7's Avatar
    Join Date
    Mar 2006
    Posts
    2
    Hi all....
    I am new to Mobile Java.I have gone through the documentation and learnt to use the ktoolbar.I could also run the example applications available with the wireless toolkit.

    I am trying to run the DBMIDlet example used to access remote relational database.For the server-side,I have successfully deployed the war file and it runs fine at http://localhost:8080/DatabaseProxy.

    Now I need to run that on the emulator.But the JAD file for DBMIDlet specified the Proxy-URL:http://www.myhost.com/databaseproxy-1.0/servlet/dbproxy

    So i tried changing it to
    Proxy-URL:http://localhost:8080/DatabaseProxy

    But when i build and run the midlet,it says error 302.

    kindly help.

  2. #2
    Super Contributor Jason Glass's Avatar
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556
    http://localhost:8080/DatabaseProxy.

    when accessed from the browser on your PC works, cus the localhost is the PC

    in the device/emulator, you dont want to have localhost, as that would infer the device as the localhost, not your PC, on device, you should have an IP address for the PC instead of localhost

    If your PC is 192.168.0.1
    And your emulator gets an ip address of 192.168.0.2(irrelevant)
    In device or emulator, when connecting to PC, you would use

    http://192.168.0.1:8080/DatabaseProxy

    you can also remove the logic that reads the database url from the jad until you get it working, instead hard code url in app, that way you simplify everything just slightly.
    Jason Glass
    http://IChiBanComputers.Com

Similar Threads

  1. launching wap browser with URL
    By mtg101 in forum Symbian C++
    Replies: 28
    Last Post: 2008-07-01, 16:01
  2. problem to open url from sms with different port
    By semheethaar in forum General Messaging
    Replies: 0
    Last Post: 2005-07-27, 15:27
  3. Changing ringtones by changing profile programatically
    By daredevilWin in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-05-24, 07:59
  4. Nokia 6600 - URL Problem
    By prashanthsmurthy in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2003-12-24, 17:35
  5. Replies: 2
    Last Post: 2003-05-26, 08:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved