It sounds like you are having issues with JSTL - not stripes.

You need to make sure JSTL can find bundles.  It has nothing to do with stripes 
in this particular case.

JSTL finds default bundle name by checking this property in web.xml

    <!-- Define the basename for a resource bundle for I18N -->
    <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>TestResources</param-value>
    </context-param>


Since you are specifying custom bundle on the page, it should try to load it 
directly bypassing this value. Make sure that messages_de.properties is under 
WEB-INF/classes of your deployed app.

You should be able to test this behavior without stripes being part of equation.

However, if you want stripes to be able to operate across multiple bundles, 
you'll have to have your own implementation of LocalizationBundleFactory that 
knows how to do so.

Hope this helps.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sven
Sent: Tuesday, April 15, 2008 12:39 AM
To: [email protected]
Subject: [Stripes-users] Localisation with bundles does not work

Hi all,

I'm trying to use stripes. I've read a lot and something I understand :) - but
the localisation does not work on my sample. Here is the code i used:

...
<stripes:layout-component name="page_title">
    <fmt:message key="admin.page.language.title" />
</stripes:layout-component>
...

I've split the StripesResources into two own resource bundles. Thats works fine
- till now. But the key "admin.page.language.title" would be find on the
resource bundles - it's show ???admin.page.language.title??? on the page .

I've try to use a other resource bundle like this:

<fmt:setLocale value="de"/>
<fmt:bundle basename="messages">
   <fmt:message key="admin.page.language.title" />
</fmt:bundle>

But this do not work as the first try.

Can anybody help me ?
Oh - ähm I'm a german user and my english ... ;)

Thanks a lot

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/javaone
_______________________________________________
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