struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukta" <mu...@amsoft.net>
Subject RE: message resources
Date Thu, 08 Jun 2006 09:02:54 GMT
I'm assuming that there is a key-value pair defined in your
message-resources (.properties) file as follows:

myValueAdded=my value {0} has been added.

And that you want to print a value at location {0} to be passed from some
jsp or some other file.

<bean:message key="myValueAdded" arg0="value"/>

Moreover, you can pass upto 5 arguments using arg0, arg1, .., arg4 in the
same manner.

HTH,
Mukta.


-----Original Message-----
From: Mukta [mailto:mukta@amsoft.net] 
Sent: Thursday, June 08, 2006 1:40 PM
To: 'Struts Users Mailing List'
Subject: RE: message resources

Pass the argument {0} as follows:

<bean:message key=" myValueAdded " arg0="value"/>


-----Original Message-----
From: Marcus [mailto:mail@goovie.de] 
Sent: Thursday, June 08, 2006 1:32 PM
To: Struts Users Mailing List
Subject: message resources

Hi,

I want to print a message like this:

myValueAdded=my value{0} has been added.

How can I fill in the corresponding value?

Thx,

Marcus

---------------------------------------------------------------------
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




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


Mime
View raw message