Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Rep Power
    0

    Default Getting the locale of the server who initiated the applet

    I have an application that uses applets running on a server whose system locale is French. So when i an sending data from Database to applet I use XML. Now i need to format the data in the locale that is there on the server and at the client side when the XML is read to populate the locale I need to read it in the same locale though the browser locale may be different.

    SO i pass the locale of the server as a attribute in the XML. But how will i get the locale of the server which has initiated the applet.

    Thanks,
    Prachi

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,420
    Rep Power
    25

    Default

    Not sure I understand the question. If you put your applet on a server, why wouldn't you know the location of that server?
    From what code running on what machine are you trying to determine the location of the server that an applet has been loaded from?
    Or are you looking for the locale of the browser that has loaded the applet via an HTML page? Would there would be some info in the HTML request header?

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,420
    Rep Power
    25

    Default

    Would you please post a link to the other forums that you have asked this question on so we could check them before taking the time to answer your question here.

  4. #4
    HafHothLact is offline Member
    Join Date
    Mar 2009
    Location
    US
    Posts
    4
    Rep Power
    0

    Default Hi Boys & Girls

    Hi Guys,

    Just joined up, thought i would say Hi :)

    Claire

Similar Threads

  1. Replies: 2
    Last Post: 10-05-2008, 06:13 PM
  2. Locale example
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-29-2008, 09:04 AM
  3. How ro change the locale of JVM
    By ravi.ks007@hotmail.com in forum Advanced Java
    Replies: 2
    Last Post: 12-26-2007, 06:17 AM
  4. Replies: 1
    Last Post: 12-17-2007, 11:13 AM
  5. Locale
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-16-2007, 02:16 PM

Posting Permissions

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