struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <...@Germuska.com>
Subject Re: <bean:message question
Date Mon, 16 May 2005 17:17:25 GMT
<c:set var="minQ"><bean:message key="prompt.minQuantity" /></c:set>
<c:set var="maxQ"><bean:message key="prompt.maxQuantity" /></c:set>
<bean:message key="error.comparequantity"
	arg0="minQ"
	arg1="less"
	arg2="maxQ"/>

Joe

At 3:17 PM +0100 5/16/05, Marco Mistroni wrote:
>Hello all,
>	I have a question regarding bean:message
>
>I have a page where I need to display a message with some
>Dynamc parameters, and I would be able to 'internationalize' the whole
>message
>
>For example, let's say that my message is
>
>Error.comparequantity={0} must be {1} than {2}
>
>
>I would like to use the tag in my page like this
>
><bean:message key="error.comparequantity"
>
>arg0="prompt.minQuantity"
>
>arg1="less"
>
>arg2="prompt.maxQuantity"/>');
>
>
>However, it looks like args0 & args2 are not retrieved from my
>ApplicationREsources.properties file
>
>Any idea on how to achieve that?
>
>Thanx in advance and regars
>	marco
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org


-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Mime
View raw message