BBjspWebResponse::setLocale (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this method sets the locale of the response. It also sets the response's character encoding appropriately for the locale, if the character encoding has not been explicitly set using the BBjspWebResponse::setContentType(String) or BBjspWebResponse::setCharacterEncoding(String).
This method may be called repeatedly to change locale and character encoding. It does not set the response's character encoding if it is called after BBjspWebResponse::setContentType(String) has been called with a character set specification or after BBjspWebResponse::setCharacterEncoding(String) has been called.
Syntax
Return Value |
Method |
void |
setLocale(Locale locale) |
Parameters
Variable |
Description |
locale |
the locale of the response |
Return Value
None.
Remarks
The example below shows setting a Locale within a BBJSP Servlet.
Example
This example demonstrates how this works in a BBJSP web-page
<% |
This example demonstrates how this works in a BBJSP servlet
class public MyServlet |