Hi

org.apache.struts.taglib.bean.MessageTag takes replacement parameters
(optional argument) as shown in the following example:

<bean:message bundle="MyMsgBundle" key="MyMsgKey" arg0="aaa" arg1="bbb"/>

This is fine as long as I know exactly how many replaceable parameters to
put.

say I get an unknown number of replaceable parameters as an array depending
on the key (key is dynamic as shown below):

<bean:message bundle="MyMsgBundle" key="<%=msgKey%>" />

So say the key "MyMsgKeyOne" may have replaceable parameters "a1","a2"
and say the key "MyMsgKeyTwo" may have replaceable parameters
"x1","y1","xy","zz".
and so on...

The same message tag must handle all these situations.

How do I specify a variable number of replaceable parameters in the message
tag?

thanks

Reply via email to