struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fredrik Andersson" <anders...@r2m.se>
Subject RE: java.lang.IllegalArgumentException: can't parse argument numb er
Date Tue, 04 Jul 2006 06:13:10 GMT
No I'm trying to use the value of common.a as the value of key.a because
in the future the keys that all have the value "Hej" might need to be
changed to different values.

Den 7/3/2006, skrev "Yee, Richard K CTR DMDC"
<Richard.Yee.ctr@osd.pentagon.mil>:

>Fredrik,
>The property value of {common.a} is causing the problem b/c the
>java.text.MessageFormat class
>is used to to parameter replacements in the message. Are you trying to use
>the literal string
>'{common.a}' as the value of the key? If so, you need to escape the '{' and
>'}' characters.
>
>-Richard
>
>
>-----Original Message-----
>From: Fredrik Andersson [mailto:andersson@r2m.se]
>Sent: Monday, July 03, 2006 4:40 AM
>To: Struts Users Mailing List
>Subject: java.lang.IllegalArgumentException: can't parse argument number
>
>
>Hi all
>
>I get this message when tomcat is trying to parse my <bean:message
>key="a.key" /> struts tag.
>
>In my resource file I have a key called a.key={common.a} and this seems to
>break.
>
>Anyone that knows why this occures and what I can do to fix it?
>
>---------------------------------------------------------------------
>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