Hi Philip,

> In my JSP's I have:
> 
> <fmt:message key="foo1"/>
> <fmt:message key="foo2"/>
> <fmt:message key="foo3"/>
> 
> The page returns:
> 
> Foo's
> Foo''s
> Foo's
> 
> This kinda makes sense but I see that the Stripes SimpleMessage class  
> implementation is supposed to use:
> http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html
>
> Any idea why the StripesResources.properties doesn't following the  
> standard MessageFormat format conventions where:
> 
> foo2=Foo''s
> should be printed like:
> 
> Foo's

Well, you are right, SimpleMessage uses MessageFormat and thus will
print Foo''s as Foo's. But you are not using SimpleMessage here!
You are using the fmt:message tag, which is part of the JSTL and
is not related to SimpleMessage (nor Stripes, in fact).

So, indeed you'll need to espace ' with '' for Stripes information
and error messages. But fmt:message does not use MessageFormat
unless you specify parameters with nested fmt:param.

Hope that helps.

Cheers,
Freddy
http://www.stripesbook.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to