Java Reference
In-Depth Information
A.3
Settings
The parameters in this section change the default settings for some of
the modules used by Stripes.
FileUpload.MaximumPostSize
This sets the maximum total size of the request data, including request
headers, parameters, and uploaded files. A value without a suffix is in
bytes; you can use the
K
,
M
, or
G
suffixes (case insensitive) to provide
a value in kilobytes, megabytes, or gigabytes. Do not put any spaces
between the value and the suffix. Any characters after the suffix are
ignored.
<init-param>
<param-name>
FileUpload.MaximumPostSize
</param-name>
<!-- Sets the limit to 5 MB -->
<!-- 5m, 5MB, 5megabytes, or 5242880 all have the same effect -->
<param-value>
5M
</param-value>
</init-param>
LocalePicker.Locales
This is a comma-separated list of locales supported by the application.
This parameter is loaded by
DefaultLocalePicker
. Locales can be in the
ln
,
ln_CN
, or
ln_CN:ENC
format, where
ln
is the language,
CN
is the country,
and
ENC
is the encoding. For example:
<init-param>
<param-name>
LocalePicker.Locales
</param-name>
<param-value>
en,fr_CA,es_MX:UTF-8
</param-value>
</init-param>
LocalizationBundleFactory.ErrorMessageBundle
Loaded by
DefaultLocalizationBundleFactory
, this parameter indicates the
name of the resource bundle for error messages. The default is
Stripes-
Resources
.
Search WWH ::
Custom Search