struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Jibaly" <Abdullah.Jib...@aeroxchange.com>
Subject RE: <bean:message question
Date Mon, 16 May 2005 18:01:32 GMT
Marco:

Try using jstl's fmt:message instead:

<fmt:message key="prompt.minQuantity" var="minQuantity" />
<fmt:message key="prompt.maxQuantity" var="maxQuantity" />
<fmt:message key="error.comparequantity">
	<fmt:param value="${minQuantity}" />
	<fmt:param value="less" />
	<fmt:param value="${maxQuantity}" />
</fmt:message>

-Abdullah

-----Original Message-----
From: Marco Mistroni [mailto:mmistroni@waersystems.com]
Sent: Monday, May 16, 2005 9:17 AM
To: 'Struts Users Mailing List'
Subject: <bean:message question


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


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


Mime
View raw message