struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Riyaz Mansoor <rman...@gmail.com>
Subject [OT] MessageFormat and curly brackets
Date Thu, 26 May 2005 08:13:32 GMT

not strictly struts ... but lots of smart guys here :)

String str = "<arg name=\"minlength\" key=\"${var:minlength}\" ";
MessageFormat mf = new MessageFormat(str);

throws error saying "can't parse argument number var:minlength"

how place literal curly brackets in String such that MessageFormat 
ignores them?


thanx for helping

riyaz


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


Mime
View raw message