p.czx
Jan 24th, 2005, 05:08 AM
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.ResourceBundle MessageSource"
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
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.ResourceBundle MessageSource"
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