Have you tried escaping the string? You might try \${min} or possibly \\\${min} (since the Properties object may unescape once). (*Chris*)
On Sun, Oct 27, 2013 at 9:55 AM, Umesh Awasthi <umeshawas...@gmail.com>wrote: > Oh, that was my typo and yes message indeed contain $. > Issue here is how bean Validation is working. > > My problem is, when TextParseUtil is on to action, i do not have values for > ${min} and ${max}, so i can not pass these values as parameter to > TextParseUtil. > > And when message being passed back to plugin, these placeholders are > already parsed and i have no control over it. > > In order to fetch values for ${min} and ${max} from underlying bean > validation API, i need these placeholder names (min,max) as BeanValidator > hold these values in a Map with {min} and {max} as keys. > > I am not sure if custom TextParseUtil will work for me as it might create > issue with application which actually need to parse those messages. > > I do not want to reinvent everything from start as Struts2 is doing all > work as expected except this part ;) > > > > > On Sun, Oct 27, 2013 at 10:15 PM, Lukasz Lenart <lukaszlen...@apache.org > >wrote: > > > 2013/10/27 Umesh Awasthi <umeshawas...@gmail.com>: > > >> Are you sure? There is no opening chars (either $ or %)... > > >> > > > Not sure what does this mean? > > > > it supposed to be like this: Please provide a valid mobile number > > between ${min} and ${max} > > > > And then TextParseUtil will parse the placeholders. > > > > >> You can implement your own TextParser. > > >> > > > Seems like this is only way to go :( > > > > I'm not sure if it's the right way anyway - as you want to have a > > parser that doesn't parse ;-) Maybe something else has to be changed, > > on some other level. > > > > > > Regards > > -- > > Ćukasz > > + 48 606 323 122 http://www.lenart.org.pl/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > -- > With Regards > Umesh Awasthi > http://www.travellingrants.com/ >