Would anybody else find it useful if the '<bean:message ...>' tag was
modified to allow it to read a message key and arguments from a bean? What I
propose is to add an optional 'name' attribute to the tag that identifies
the bean to use. If this attribute is not set the tag behaves as it
currently does. If it is set the 'key' and 'argX' attributes refer to
properties of the bean from which the message key and arguments are read.

As an example something like this:

<jsp:useBean id="aBean" class="package.Class"/>
<bean:message key="<%= aBean.getMessage() %>" arg0="<%= aBean.getArg0()
%>"/>

could then be written as follows:

<jsp:useBean id="aBean" class="package.Class"/>
<bean:message name="aBean" key="message" arg0="arg0"/>

-------------------------------------------
Howard Moore
Senior Software Engineer
Datapulse CTI
Tel : +44 (0)1491 418000
Fax : +44 (0)1491 411459
E-mail: [EMAIL PROTECTED]

Reply via email to