Java Reference
In-Depth Information
Here's an example:
<init-param>
<param-name>
LocalizationBundleFactory.ErrorMessageBundle
</param-name>
<param-value>
path/MyErrorMessageBundle
</param-value>
</init-param>
LocalizationBundleFactory.FieldNameBundle
Loaded by
DefaultLocalizationBundleFactory
, this parameter indicates the
name of the resource bundle for field names. The default is
StripesRe-
sources
. Here's an example:
<init-param>
<param-name>
LocalizationBundleFactory.FieldNameBundle
</param-name>
<param-value>
path/MyFieldNameBundle
</param-value>
</init-param>
Stripes.DebugMode
This sets a
true
or
false
flag (the default is
false
) to indicate that the
application is running in debug mode. You can then retrieve this flag
with
StripesFilter.getConfiguration().isDebugMode()
. For example:
<init-param>
<param-name>
Stripes.DebugMode
</param-name>
<param-value>
true
</param-value>
</init-param>
Stripes.EncryptionKey
This sets the key used to encrypt values in all sessions of the web
application. You must set a key if you need encrypted values to be
decryptable across cluster nodes or after the web application restarts.
For example:
<init-param>
<param-name>
Stripes.EncryptionKey
</param-name>
<param-value>
some very long string used as an encryption key
</param-value>
</init-param>
You can also set the encryption key in Java code by creating an object
that implements
javax.crypto.SecretKey
and calling
CryptoUtil.setSecretKey(
SecretKey)
before any requests are made, as in a
ServletContextListener
.
Search WWH ::
Custom Search