H
harryos
i am trying to write a web app where a jsp page uses ResourceBundle to
get a property name and looks up its value from a include.properties
file.
include.properties
-------------------------
external-include=WEB-INF/jspf/header_tag.jsp
The main jsp contains
<html>
<% java.util.ResourceBundle bundle =
java.util.ResourceBundle.getBundle("include");
String segment = bundle.getString("external-include");%>
<jsp:include page="<%=segment %>"/>
<body>
....
</body>
</html>
I have put the include.properties in WEB-INF directory.
When i try to access the main jsp page ,I get this error=>
java.util.MissingResourceException: Can't find bundle for base name
include, locale en_US.
Can someone help me figure out how to correct this?
thanks
harry
get a property name and looks up its value from a include.properties
file.
include.properties
-------------------------
external-include=WEB-INF/jspf/header_tag.jsp
The main jsp contains
<html>
<% java.util.ResourceBundle bundle =
java.util.ResourceBundle.getBundle("include");
String segment = bundle.getString("external-include");%>
<jsp:include page="<%=segment %>"/>
<body>
....
</body>
</html>
I have put the include.properties in WEB-INF directory.
When i try to access the main jsp page ,I get this error=>
java.util.MissingResourceException: Can't find bundle for base name
include, locale en_US.
Can someone help me figure out how to correct this?
thanks
harry