Messagebody - BEA WebLogic Server Manual

Internationalization guide
Hide thumbs Also See for BEA WebLogic Server:
Table of Contents

Advertisement

2
Using Message Catalogs with BEA WebLogic Server
Attribute
method

messagebody

The following table describes the child element of the message element.
2-12
Internationalization Guide
Default
Required/
Optional
None
Optional
Description
Method signature for formatting this message.
The syntax is a standard Java method signature, less
return type, qualifiers, semicolon, and extensions.
The return type is always String . Argument types
can be any Java primitive or class. Classes must be
fully qualified if not in java.lang . Classes must
also conform to java.text.MessageFormat
conventions. In general, class arguments should
have a useful toString() method, and the
corresponding MessageFormat placeholders
must be strings; they must be of the form {n} .
Argument names can be any valid name. There can
be no more than 10 arguments.
For each argument there must be at least one
corresponding placeholder in the messagebody
element described below. Placeholders are of the
form {n} , {n,number} or {n,date} .
Example:
method="getNoAuthorization
(String filename, java.util.Date
creDate)"
This example would result in a method in the
TextFormatter class as follows:
public String getNoAuthorization
(String filename, java.util.Date
creDate)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BEA WebLogic Server and is the answer not in the manual?

Table of Contents

Save PDF