To get the country code...

Hi...I need some help...I need to get the country code of the client browsing.For example..If the server is located in US and the client is browsing from China...the server shoulod know that this client is from China,,how to get the client's country code in the server.
From URL ,,its explicit,,i,e if th URL reads as www.dfd.co.ch,,there from url i can get the country...but if the URL is same for all,,then how to get the end users country code???
Please let me know asap.
regds
Subhash

You can only take a "best guess" judging upon their browser locale settings. They client browser sends that with the "Accept-Language" header.
API methods are in ServletRequest: request.getLocale() and request.getLocales();

Similar Messages

  • To get the company code and country grouping attached to a position

    Hi everyone,
    I have a position and I need to get the company code and the country grouping that this position is attached to. Could you kindly suggest an FM or a class which would fetch the above data keeping in mind the inheritance tree. That is, if the company code is not maintained in HRP1008, then it should look for the same in the Org Unit that this position belongs to and so on..
    Any help will be greatly appreciated.
    Regards,
    Alpana.

    Hi
    Check the A011 relationship of the position and get the cost center, from cost center you can get the company code and country grouping from Cost Center Master CSKS.
    ~~~Ganesh Kumar K.

  • After downloading viber application , I was asked to enter my phone number without the country code, when I enter my phone number and pressed continue, I get this error "check setting notification" I checked it and it is on,how to get my viber code ?

    After downloading viber application , I was asked to enter my phone number without the country code, when I enter my phone number and pressed continue, I get this error "viber can't access push notifications. Check settings > notifications. Check internet connection and try to register again. see viber.com/notifications for more info. I have checked the notifications and it is on also I have checked the internet connection and it is active, so what shall i do now to get my viber code?

    Contact Viber customer/technical support.

  • How to get the itunes code of iphone 5s

    how to get the itunes code of iphone 5s
    I am from india ....
    the itune setting doesnot give me none option in my phone ....
    And i dont know the itunes gift code ...
    So pls give me the detail how to get the itunes code and what is it ?

    It would have been better if you had added a reply on your original post instead of starting a new thread : https://discussions.apple.com/thread/5514146?tstart=0
    iTunes gift cards are an alternative way of paying for content from the store, but they aren't available in all countries (and the cards are country-specific, they can only be used in their country of issue). The gift card field on the account set up page is optional, and as gift cards aren't available in India you won't be able to fill it in anyway.
    There are instructions on this page for how to create a new account without giving credit card details and will give you the 'none' option : http://support.apple.com/kb/HT2534 - the instructions won't work with existing accounts, and if you didn't use those instructions when creating your existing account then you will need to enter credit card details before you will be able to use it to download content

  • How to get past country code limit

    Hello Users,
    I want to watch "US" format DVDs on my "European" format MacBook. Message appears: "You may only change the country code seven times!" Is there a way to get past this limit, to be able to use "US" format DVDs unlimited and switch back to "European" format afterwards?
    Do I need a special software or a special external DVD drive? Any suggestions to solve this are welcome! Thanks a lot!
    AliSan

    rip the dvd onto your computer using software such as handbreak and watch it from there? Dont know if it will work but its worth a shot.

  • "Message Sending Failed" after adding the country code number?

    I changed a contact's number (in this case I simply added a country code to it) and now the messages aren't sending to the number I changed it to. How can I get the SMS library to redirect itself to the new number? When I delete the contact, the SMS library shows that it is still sending to the old number.
    The only solution I've found on the internet so far is delete the SMS library. I have tested it with other numbers in which I added a country code to as well and it works. But the text messages for this particular contact are very important and I need to keep them. Is there ANY way I can redirect an old SMS library to a new number?

    Hi, Thilina66.  You say you have entered the country code but still cannot make international calls.  I suppose you are adding the international access code before the country code.  This internaltional access code (011 in the US, 00 in Europe, etc.) can be substituted by adding a + sign before the country code.
    For example, to call a number in the UK from the US you have to dial:
    011 44 7540 267898
    or
    +44 7540 267898
    To call a number in the US from the UK you have to dial:
    00 1 212 456 1470
    or
    +1 212 456 1470
    Please check that the contact number in your address book is correctly written if you are dialing directly from the address book or that you enter the correct numbers in the keyboard if you are dialing from the keyboard.

  • How can I use iCloud-keychain if i can not find my country in the country code list?

    How can I use iCloud-keychain if i can not find my country in the country code list?

    Welcome to the Apple Community.
    If your country code does not appear in the list…
    Go to System Preferences > iCloud > Keychain and enter your Apple ID password (Settings > iCloud > Keychain, from a mobile device)
    Select the ‘Create Different Code’ option. (Mobile devices only)
    Select the advanced option and choose whether to create a random code or no code, selecting the later allows syncing across devices but not with Apple’s servers.

  • How can i get the tax code from Condition record number

    Hi all,
    i have the Condition record number from which i have to get the tax code as i looked inthe KNOP that Condition record number there but no tax code is maintained there.
    so is there any other way to find the tax code for particular Condition record number
    Regards
    suresh

    hi suresh,
    can u tell me the field name for condition record number and in which table it is stored.
    because i knew one condition number which is stored in table EKKO and the field name is
    KNUMV- Number of the document condition.
    from ekko take relevant details and look for  ekpo where u find the tax code
    filed name of the tax code id MWSKZ- Tax on sales/purchases code

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • I purchased and downloaded Adobe Photoshop Elements 13 from Amazon and when I try to open it, it's asking for a "Redemption Code".  Where do I get the that code?

    When I try to open the Adobe software, it asks from the Redemption Code when on an Adobe web site.  The instructions that came in the download say that this is a 24 digit code of numbers and letters.  The only thing I got from Amazon was an Order Key, which is also 24 digits, but only numbers and the software didn't like that code…  I walked through the steps on the Adobe web site to get my redemption code, but the final step before giving me my redemption code is to enter my redemption code…  I have to enter the code for them to give me the code…???  Am I missing something???  Do I get this "Redemption Code" from Amazon, or from Adobe?

    You would get the redemption code, or perhaps even the serial number, from whomever you purchased the software from, apparently Amazon, so talk to them.  This wouldn’t be the first time they’ve sold something that didn’t have all the numbers needed to license it.
    A redemption code is something that is usually on the inner disc packaging if you purchase the media in a box, and there is a barcode on the outside of the packaging that must be scanned at the checkout register to activate the hidden inner code so you can redeem it at home on that website.  This is what happens if you buy PSE from a brick-and-mortar store like Best Buy.  I don’t’ know what happens if you purchase the downloaded version as I have never done that.
    A redemption code is 24-digits of letters and numbers that you enter into a website to get a serial number, once and only once.  The serial number of only 24-digits, no letters, is what you enter into the software during the install or when you run it and it asks if you want to register or run in a trial mode—whatever the exact phrasing is.
    In any case it sounds like you don’t have either a redemption code or serial number—although perhaps something is listed on the purchase confirmation or your account online at Amazon or even in an e-mail from Amazon.

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

  • How do I add the country code to all contacts when it did not previously appear?

    I just moved from the US to the UK and purchased a new iPhone 4S.  When my contacts migrated from Outlook to the iPhone they did not include the country code in the US and therefore all contacts numbers are now listed incorrectly.  How can I add the country code to hundreds of contacts painlessly?
    Thanks in advance.

    International Assist is activated.  Upon further review this appears to be a case of the original country codes not being added when the contact list was constructed.  iOS has not figured this out and thus when changing countries I've been forced to add the country codes to every contact record manually.  Disappointing and very labour intensive.  If only Apple allowed for a macro that simplified the mass change.

  • How can I call contacts from my list without the country code that is registered with that contact?

    I have all my contacts registered with a country code. When I want to make calls from my iphone, I do not want the phone to dial the country code, but only the area code. How can I make that happen?

    Your 3G backup contains your contacts already, you don't need to sync them to Outlook or anything just restore the backup file from the 3G onto the 4S and you should be good to go.
    This kb article should help:
    http://support.apple.com/kb/ht1414

  • When I try to get the key code for office it tells me its already been used.  My mac had a new hard drive in its first year, could it be because of this?  How can I get the office I've paid for but never used?

    My mac had to have a new hard drive in its first year.  Now, when I try to get the key code for office it tells me its already been used.  How do i get the office I've paid for but never used?

    The product key is sent to you by email as part of the purchase confirmation.
    If you have lost it, log into your Microsoft account.

  • Not able to create a customer master record with US as the country code

    Hey All,
    I am not able to create customer master data in the Transaction Code XD01/FD01 with the country code as US.
    The error message for the same is *NO JURISDICTION CODE* COULD BE DETERMINED. I have checked the tax code settings but could not locate the problem.
    I have checked the field in the account group(OBD2) but tax code is in  optional status
    and also checked the country settings for US in the transaction code OY17 still the same error message,
    but when I tried checking the settings for a different company code's customer data base (us in county code)
    I can see that there is a number mentioned in the address tab under tax jurisdiction field (beside time zone) which is not populating for this company code.
    So, do anyone know where exactly we mention this number so that it populates in that field of address.
    Hope am clear.
    hope to receive a solution
    thanks & regards
    vinila

    Hi,
    You need to maintain the JURISDICTION CODE for country US. This  JURISDICTION CODE code mainatanance purely FI/CO part.. it depends on the country's tax procedures.. Better take the help from your FI/CO consultant..
    Menu path for Defining tax jurisdiction code
    IMG -- Financial accounting -- Financial accounting global settings -- tax on sales and purchases -- basic settings -- define tax jurisdiction
    reward if helps
    Muthu
    Edited by: Muthupandiyan on Mar 14, 2008 11:09 AM

Maybe you are looking for

  • Building big XML file from scratch - Urgent

    Oracle 8.1.7.3 on windows NT platform What is the best way to generate a quiet big XML file from multiple tables ? I have information stored in many relational tables from which I need to generate a XML flat file either stored in a CLOB field or in a

  • Keeping CS3 tool palettes viewable when off focus

    On my Mac, I have FLash CS3 open and sometimes I want to have a web browser open as well so I can check info on a website where i have to click to view a link and compare to what's in the Actions panel. BUT when I get away from Flash, all the tool pa

  • Full screen bug

    When you create a button handler with accessibility enabled so a space bar key press fires the MouseEvent.CLICK, you get an error trying to set stage.displayState to StageDisplayState.FULL_SCREEN. Apparently under the covers, there is a translation b

  • How can i get my stickies to remain on my desktop

    I dont know how to keep my stickies on my desktop. When I turn off my computer and turn it on again I would like it to remain on my desktop

  • Better control flow?

    Actually this is a general question I've been wondering for a while... As the title states, I'm looking for a better control flow statement for what I planned. I have 4 variables that determine types of pipe in a program in my main class. There are 6