Using JSP Get User's Default Language
Hi!
I have to get the User's Default language using JSP that the client is accessing website and u want to rederict him automatically to his default language which he is using. Like in google aur other websites.
If it is also possible in Javascript then it is also acceptable for me.
this can only be done if the request has the Accept-Language header set. You can read this using either request.getHeader("Accept-Language") or request.getHeaders("Accept-Language") for an enumeration of all the languages that the user will accept. Look at this page for details on the Accept-Language header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Note that the user agent (browser) does not have to provide this information (my Netscape browser does not, and I always get English from Google. My IE browser does, so I will get German if my default lang is set for German).
Similar Messages
-
Using Yasu get user auth error after 10.4.4 update
I just updated to 10.4.4 and now when I try to run Yasu to gun maintenance scripts and stuff I get a user authentican failed error. Anyone else getting this? Any idea what I can try to fix it? I ran the daily, weekly, and monthly scripts from the command line (it didn't tell me it completed or errored out) and ran a permissions repair and also rebuilt the directory using diskwarrior but still can't get yasu to work. Any ideas?
NM got it
-
User menu not showed in the user's default language
Hello,
I'm having the following problem:
3 months ago we installed the French language in our systems,becuase french users are going to use our SAP Systems. The installation was done succesfully in client 000 and then was suplemented in English in clients 000 and 100 (the productive one). Everything was ok.
We have created french users and we have assigned them roles that we had before the installation. When we log with these french users in french, the user menu in transaction SAP EASY ACCESS is in english and not in french (even the SAP standard transactions).
If we create a new role and we assigned it to the french user it is ok.
So we have problems with roles created before the installation of the French language.
Does someone know how we can correct the problem? We need to use this old roles.
I hope someone can help us as soon as possible, because I can't go on creating the user with these problem.
Thank you very much in advance,
Kind Regards,
JoséHello,
Does someone have any idea how I can solve my problem.
It is very similar to the problem explained in point 2 of the note 340075. The solution given by this note doesn't work.
Thank you very much in advance,
José -
Change default language of login in database
Hi,
Working on SQL Azure. I'm running queries that are date dependent and so I need to set the default language of the user to be British (to get dd/mm/yyyy format). How can I do this in Azure. Create Login and Alter Login are restricted and when I query sys.sql_logins
in master database I can see that the users have default language if US English.
Thanks,
TomHello,
Microsoft Azure SQL Database does not support using DEFAULT_LANGUAGE options with
ALTER LOGIN statement.
SQL Azure stores the data of Date/Time in UTC timezone and it does not support changing the timezone. You should convert date format and apply to the end user applications by yourself. Or you can try to store the date/time with datetimeoffset
data type which is support in SQL Azure.
Reference:http://bobthegoblin.wordpress.com/2011/09/13/sql-azure-and-the-datetime-now-issues/
http://blogs.msdn.com/b/cie/archive/2013/07/29/manage-timezone-for-applications-on-windows-azure.aspx
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
HOW to define the default language in the portal
Normally the portal take the language of the internet explorer for user.
I want to define a default language for all portal users in our portal, so that every user get the same default language.
Can anyone tell me how to do this?
We are on EP6 SP2.
Thanks SybilleHi Olivier,
thank you for the response.
I added
request.mandatorylanguage=de
request.mandatorycountry=de
to
request.defaultlanguage=de
request.defaultcountry=de
Now, I get the default language german, but when I want to changed the portal language over personalize to English, the result is nevertheless the german language.
Can you help me again? Where can I get a documentation about this?
I want a default language: German. Also when the Internet Explorer has a different language. But when the user select manual one of the permitted languages (English and German) over the personalize button, the language should change to the selected language. Is it possible?
Bye Sybille -
I have a new HP Prime calculator. When I press the Apps button, I get a "Choose default language" screen. I can't seem to choose anything in it, nor can I escape out of it. I can't get to the apps on my device. I can't even turn off the calcaulator.
What's wrong?Hi,
I suggest you post you question on the following forum:
http://h30499.www3.hp.com/t5/Calculators/bd-p/bsc-408
Regards.
Note: I do not work for HP, I just like playing with calculators :-) -
Stoplist changing default language
The manual says that the language of the stoplist used is determined by the default language of your database.
My database runs NLS_LNAGUAGE=AMERICAN
but I want to have my stoplist in DUTCH without changing my default database language.
How can i achieve thatYou can create your own stoplist and specify that in your index creation or change the ctxsys.default_stoplist. You can use cxt_ddl.add_stopword and ctx_ddl.remove_stopword to add and remove stopwords from your stoplists. You can copy and paste the stopwords from the online documentation to a text file, use SQL*Loader or an external table to load them into a table, then loop through a cursor selecting from that table and use ctx_ddl.add_stopword to add each one to your stoplist.
-
How i get user info from ldap using java after authenticating user with SSO
Hi
I have one jsp/bean application as a partner application with SSO.
It works fine.
Now i need to get other attributes of user from LDAP who has logged into the application through SSO.
using SSO java APIs i only get username, userDN, subscriber info.
To get user's other attribute i have to user LDAP APIs for that i have to create on Directory Context, for the same i need userpassword.
so here i my question, how do i get user password after he has logged in thro SSO.
regards..
and thanking u in advance
samirValentina,
there's no way to get the password value from the directory (it's one way). Of course you can get the hashed (MD4,MD5,SHA-1) base64 encoded value (i.e. the value you see in OiD) but not the 'password'.
--Olaf -
Users by default logon language
Hi
I am trying to find out how many users logon to our global EEC5 system from different regions/countries, due to the lack of information entered in SU01 during the creation of users, I think the only reliable information to search on is 'Logon Language' in SU01 defaults, as we do setup the users to logon via their region logon language in the defaults, this should give me a rough guide at least !
Looking at SU01 and the reports in SUIM, I cannot find a report where I can search using logon language as the key? I've had a look in the technical information for field logon language in SU01 and the field name is LANGU, but when I use this field name in SUIM --> Users by complex selection criteria (RSUSR002) -- > field name LANGU and value as language key = DE for example no matching results displayed, even though we have over 00 users with a logon language default set as DE.
Does anyone know a way I can list the users by logon language set as their default?
Thanks for any help.This details can be found from the Report RSUSR200 (users by Logon date and password chage). Please deselect all options and keep the following selected:
Users Valid Today
Users Not Locked ; Users Locked
Users with no incorrect Logon attempts
Dialog Users
Users with Productive password
Users with initial Password
users with deactivated password
Execute and check / download the list.
Regards,
Dipanjan -
Controlling the default language for new business users
Hi everyone,
If this has been answered elsewhere, my apologies for asking again.
My company is currently in the initial implementation of ByDesign (1405). I just migrated our employees into ByD using the migration tool. This went fine, and also created (inactive) Business Users for each employee.
One small issue I have, is that for each Business User created, ByD picked a "Default Language" based on the country where the user's organization unit is based (so Dutch for users assigned to an entity in the Netherlands, Danish for users assigned to a unit in Denmark, etc...).
This despite the fact that the only language we have configured in ByD during scoping is English. In fact, when you edit the default language on the business user record, the drop down only offers English as a choice.
Since this is our test environment, this is not a big deal, but I would like to prevent this once I migrate user to our production environment.
So: how do I make sure that the Default Language on each Business User created when creating an Employee is English? (I would rather not have to fix this manually for a large number of users).
Thanks!
EelcoIt applies to selected text. It is part of the text's style.
So if you want a document to be by default a particular language, make a template in which all the text and all the styles in the styles drawer are set to what you want.
Peter -
Changing Default language for all users
Hi ,
We have upgraded EP 6.0 to EP 7.0 . After the upgrade when users are logging into the portal default langauge is being set from the browser .
I want to set the default langauge to EN for all the users. My prtDefault.properties file already contains following entry :
This is the default language to be used when none is specified
request.defaultlanguage=en
request.defaultcountry=us
Do I also need to ADD
request.mandatorylanguage=en
request.mandatorycountry=us
properties in this file ? Please suggest.
Regards,
GaneshHi Ganesh,
Can u pl post how you solved this.
Regards,
Reema. -
Determin how many user log on the site using JSP/Servlet?
Hi all,
Is there a way to determine how many user log on the site using JSP/Sevlet? I'm running Apache 2.x & Tomcat 4.x
I'm trying to get a list of user currently log in the site.
Please help!
Thanks,
-JN-You could use the HttpSessionBindingListener interface. Every time a user logs into the session put a user object into the session. The user object will implement the HttpSessionBindingListener interface. When the user object is added to a sessiion it recieves an event and it increments a counter. When the session times out or you invalidate the session because the user has logged out the user object will recieve an event and it can then decrement the counter.
This will at least tell how many active user sessions there are. -
Default language and region, oracle ignores users wishes
hi!
oracle seems to ignore users language wishes. for test, i
installed oracle 9i client. i'm using windows 2k us english, but
use localization of switzerland (numbers, date, etc.).
the installer was:
- in german
no way to convice it to go to english
- i removed german from the installed product languages,
i just left english.
then i started enterprise manager:
- it was in german!!
no way to get it to use english
- all the umlauts were desplayed
strangely.
you should really rethink your concept of localization. language
is NOT localization. a gui should offer to change the used
language EASILY (one click). a database should offer to change
the language in wich it writes error messages easily.The Oracle installer and the enterprise manager pick up the
user's perferred language from the regional setting on your
Windows OS. Did you by any chance set your locale on Windows to
German (Swiss) ?
Regarding the language of the database error messages, this is
driven by the language part of the NLS_LANG environment
variable. This is also session based, so it you really want to
you can have the 1st error message in German , follow by the
next one in French , and then in Italian etc ....
hi!
oracle seems to ignore users language wishes. for test, i
installed oracle 9i client. i'm using windows 2k us english, but
use localization of switzerland (numbers, date, etc.).
the installer was:
- in german
no way to convice it to go to english
- i removed german from the installed product languages,
i just left english.
then i started enterprise manager:
- it was in german!!
no way to get it to use english
- all the umlauts were desplayed
strangely.
you should really rethink your concept of localization. language
is NOT localization. a gui should offer to change the used
language EASILY (one click). a database should offer to change
the language in wich it writes error messages easily. -
How to get the values of an Array using JSP Tags
Hey guys,
I need some help. I've splited a String using
fn:split(String, delim) where String = "1,2,3,4" and delim is ,
This method returns an Array of splited Strings. how do i get the values from this array using jsp tags. I don't wanna put java code to achive that.
Any help would be highly appreciated
ThanksThe JSTL forEach tag.
In fact if all you want to do is iterate over the comma separated list, the forEach tag supports that without having to use the split function.
<c:set var="list" value="1,2,3,4"/>
<c:forEach var="num" items="${list}">
<c:out value="${num}"/>
</c:forEach>The c:forTokens method will let you do this with delimiters other than a comma, but the forEach tag works well just with the comma-delimited string. -
Can someone help please.
I have just "lost" ( cannot open) all my saved Invoices in the Document folder. All I am getting is " cannot open, Invoice ** is used bey another user, do you want to make copy? " That doesn't work either. I can't get anything on the time capsule either. How can I reset to an earlier time? Or what can I do?
Thank youDid you recently reinstall the OS then copy all your files back over? Do a Get info on one of the documents and see if your current UserName is listed and has Read & Write permissions. If not select the Documents folder and check that for Read & Write permissions for your UserName. If it doesn't have R & W permissions Add it so it does.
Maybe you are looking for
-
My trusty Mac LC no longer boots from the HD
I purchased a new Mac LC many years ago and it has served me well until recently when it would no longer boot from the hard drive. When I boot from a Disk Tools floppy, I get some limited success but do not ever hear the HD spin up. The startup chime
-
I upgraded my computer yesterday to a Mac Mini 2014 from a Mac Mini 2011. Restored the drive from Time Machine. The message I received when trying to use Photoshop was I had to many computer enabled. The option was to disable the other two and use t
-
Why does my Mac Book pro keep restarting
why does my Mac Book pro keep restarting and how can it be fixed
-
How do you make audio fast without changing pitch?
How do you make audio fast without changing pitch?
-
How to determine which user uses which database-object
Hi, currently we are in the process of consolidating our databases. One of the neccessary steps is to figure out which user connects to the database at all. That's easy, we implemented a logon-trigger and log the collected information into a separate