You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bharat Bhushan <Bh...@KeaneIndia.Com> on 2004/08/26 19:02:25 UTC

More than 5 Arguments

Hi 

My question is how to print a message on the page through resource bundle
which has more than 5 arguments. 

<bean:message> Tag support only 4 arguments. Any help with example will be
appreciable.

Thanks
Bharat

Re: More than 5 Arguments

Posted by James Mitchell <jm...@apache.org>.
More than 5 ArgumentsIf you really need more than 5, then combine them.

I would recommend doing this in your action prior to forwarding to the jsp.


messages.properties
-------------------
global.msg.final = Please {0} and click {1} when you are done.
global.msg.finish = finish
global.msg1 = enter {0}, {1}, {2}, {3}, and {4} fields


MyAction
...
...
 String msg = getResources( request ).getMessage( "global.msg1",
"","","","" );
 String msg2 = getResources( request ).getMessage( "global.msg.final", msg,
"global.msg.finish");
 // then either set it on your form bean, or in the request
...
...



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message -----
From: Bharat Bhushan
To: Struts Users Mailing List
Sent: Thursday, August 26, 2004 1:02 PM
Subject: More than 5 Arguments


Hi
My question is how to print a message on the page through resource bundle
which has more than 5 arguments.
<bean:message> Tag support only 4 arguments. Any help with example will be
appreciable.
Thanks
Bharat



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org