When we talk about locale we are talking about the language settings as specified in the web browser of the user. This value can be retrieved in the command bean framework using the following code.
This is just one example of retrieving the properties available to the command bean framework. A list of all the properties available in the context can be retrieved by looping through all of the results returned by a call to getUserAttributeNames().
Iterator iter = getContext().getUserAttributeNames();
The context contains attributes stored in three different scopes, request, task and user. Calls to getRequestAttributeNames(), getTaskAttributeNames() or getUserAttributeNames() can allow a command bean implementer to interrogate the context and make use of a number of the properties available to them