Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Get browser language to variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Get browser language to variable
 Login/Join
 
Member
posted
Hi,

We're trying to add i18n capabilities to our portal and we're looking for a way to find out the user's browser. Since its a major corporation we cannot add the language via javascript in the first request made to the webfocus server.

So, there were a couple of solutions but I'm not sure about them.

One was to hijack the HttpRequest on the servlet and add a new paramenter to the request using HttpRequestWrapper and creating my own new request with the new parameter, but that seems to me as a very obscure workaround to be made.

Is there any simpler and clean way to get the browser's language so that I can set regional specific text depending on the browser language?

Thanks in advance!

Pedro

This message has been edited. Last edited by: pferreira,


WF 8.0.02 @ Linux environment
 
Posts: 12 | Registered: May 15, 2012Report This Post
Virtuoso
posted Hide Post
You might find this post helpful: webserver variables. I believe variable HTTP_USER_AGENT is the one that provides browser info.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Thanks Dan! It works.

FYI, it's HTTP_ACCEPT_LANGUAGE that hold the browser's language config.

Pedro


WF 8.0.02 @ Linux environment
 
Posts: 12 | Registered: May 15, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Get browser language to variable

Copyright © 1996-2020 Information Builders