loadBundle related
Hi All,
I've created the file mypackage.sai.property with a single line
welcome="welcome...this is my first msg"
and added the following lines to faces-config.xml
<application>
<message-bundle>
mypackage.sai
</message-bundle>
</application>
I've used the following lines in my jsp page
<f:loadBundle basename="mypackage.sai" var="msg"/>
<h:outputText value="#{msg.welcome}"></h:outputText>
But when i load my application tomcat is giving the following warning
SEVERE: Resource bundle 'mypackage.sai' could not be found.
Can any one suggest what is it that i am missing out
[723 byte] By [
go2saia] at [2007-10-2 18:55:12]

have a look at the tomcat webapps directory or whereever your application is located, and check:
is the bundle file in the classes/mypackage directory?
is it named right?
is the faces-config.xml up to date?
maybe delete the message-budle stuff from faces-config.
i dont use it and hence dont know if u used it correctly.
maybe redeploy the application to tomcat.
restart tomcat!
Thanks for the suggestion,
I was using eclipse wtp and i've created my sai.properties file in src/mypackage/sai.properties It was not working in this scenairo, When i've created the WEB-INF/classes/mypackage/sai.properties it is working fine.
I have other java source files in src they seem to work properly even if i dont place them in WEB-INF/classes but i am not sure why it is not the case with the properties file