BBjspWebRequest::getLocales (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this method returns the a BBjVector containing Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns an Enumeration containing one Locale, the default locale for the server.
Syntax
Return Value |
Method |
getLocales() |
Parameters
None.
Return Value
a BBjVector containing the Locale(s)
Remarks
The example below shows getting the locale(s) from a BBjspWebRequest within a BBJSP Servlet.
Example
This example demonstrates how this works in a BBJSP web-page
<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %> |
This example demonstrates how this works in a BBJSP servlet
class public MyServlet |