Hi,
I've just noticed that it's possible to format args in a
MessageResources' key (see
http://www.jguru.com/faq/view.jsp?EID=915891). I'm trying to do the
following:

In MessageResources.properties
label.mean=Nota mitjana: {0,number}

Then, in my JSP:
<bean:message key="label.mean" arg0="${mybean.mean}"/>

I get this error:
14:52:58,546-ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/TFC].[jsp]
-Servlet.service() for servlet jsp threw exception
java.lang.IllegalArgumentException: unknown format type at
        at java.text.MessageFormat.makeFormat(Unknown Source)
        at java.text.MessageFormat.applyPattern(Unknown Source)
        at java.text.MessageFormat.<init>(Unknown Source)
        at 
org.apache.struts.util.MessageResources.getMessage(MessageResources.java:302)


Do I have to define these formats somewhere?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to