Announcement Announcement Module
Collapse
No announcement yet.
ResourceBundleMessageSource and ClassLoader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ResourceBundleMessageSource and ClassLoader

    Hi there!

    I am just evaluating Spring and would like to have a view on the two
    sampe projects "Pet Store" and "Countries". So I have imported them
    into my WSAD 5.1 and they run. But just run.

    My Problem:
    The label were displayed as "???Label???".

    Before u ask, I have put the resources to the classpath of the webapps.
    I found out that there is a problem loading the resourcebundle via
    "org.springframework.context.support.ResourceBundl eMessageSource"
    class and WSAD.

    My Question:
    Why is the ClassLoader used in the Method "getResourceBundle"?

    When I will use "messages" as resource bundle, the use of the
    ClassLoader will cause the ResourceBundle to search in the
    classpath. And if a "messages.properties" is found in the
    WSAD specific classpath, my property file will not be used.

    Any suggestions?

    Thx, Peter

  • #2
    ... and I DO NOT want to rename my property files.

    Comment

    Working...
    X