aspose file tools*
The moose likes Java in General and the fly likes MessageFormat behavior Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "MessageFormat behavior" Watch "MessageFormat behavior" New topic
Author

MessageFormat behavior

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello I use the following MessageFormat.format() method like:

msgParams array --> [<a href="/appcontext/fonction.jsp?id=000000000001b7d9">fonction</a>]



But the return is --> Le lancement de la fonction <a href="/appcontext/fonction.jsp?id=000000000001b7d9">fonction</a> na pas pu se produire, suite à lerreur suivante:

I would like to have "Le lancement de la fonction <a href="/appcontext/fonction.jsp?id=000000000001b7d9">fonction</a> n'a pas pu se produire, suite à l'erreur suivante:"

How I can do that ? I have look format() function parameters but not very well solution ...


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
Is there anything peculiar about the ' character? Is it a metacharacter? Does it need to be escaped \' ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19783
    
  20

I have fallen for that same issue recently myself. My template code included "hasn't". Everything after was treated as-is, including the {0} I put after it. And I was asking myself why the {0} remained in the final text...


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MessageFormat behavior