I sent separate email with code.

Regarding the resource key resolution - stripes has a way of looking up
the resource key by generating list of possible keys. 

This section describes it -
http://www.stripesframework.org/display/stripes/Localization


<fmt:message/> is not going to generate set of possible lookup keys,
like stripes. 

login.form.field.label.password=BLAH

the only way jstl will find it, is if you pass the whole key. 
Hope this helps.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sven
Sent: Wednesday, April 16, 2008 1:51 AM
To: [email protected]
Subject: Re: [Stripes-users] Localisation with bundles does not work

Hi Leonard,

thanks once again.
It's sounds good, if you help and show me a part of your solution. If
you like,
you can send me the snippets of code to my email ([EMAIL PROTECTED]).

I have one more, that goes wrong and I can't explain why. May be - I
hope so -
you have a idea. I have on a login form this code snip:

<stripes:label name="user.password" for="password">
   <fmt:message key="login.form.field.label.password" />
</stripes:label>

If I use the name of label (user.password) as key on resource
(StripesResource)
without external fmt:message key, it works fine and the key is found. If
I use
the fmt:message key on the same resource (delete the other key before),
the key
was not found. Only on my own resource the key is found.
OK I can take the longer key as name of label. But what sould I do at
submit
button ?

<stripes:submit name="login">
   <fmt:message key="login.form.field.label.submit" />
</stripes:submit>

I can not take a individual key as name, because the name is the event
name. But
the fmt:message key was not found on StripeResource. Have you any idea.

Thanks a lot for help !

Sven


------------------------------------------------------------------------
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j
avaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to