Discussion:
f:loadBundle Question ..
hburde
2007-06-24 16:33:07 UTC
Permalink
hi;

I tried to load a resource bundle (JSF <f:localBundle) but cant get it
work.

...my.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<f:loadBundle basename="props.Messages" var="rb" />

.....


the 'Messages.properties' File is in a Source package called props.

Loading the page results in a Null Ptr Exception.

Any Idea how this works ?
hburde
2007-06-24 18:40:59 UTC
Permalink
Hi;

Ok - i found the problem. It works only in a faces 'context'
<f:view> ... <f:loadBundle ..... </f:view

Is there a way to make resource bundles in plain JSP available or do i
have to use struts then ?

hb
Post by hburde
hi;
I tried to load a resource bundle (JSF <f:localBundle) but cant get it
work.
...my.jsp
<f:loadBundle basename="props.Messages" var="rb" />
.....
the 'Messages.properties' File is in a Source package called props.
Loading the page results in a Null Ptr Exception.
Any Idea how this works ?
Loading...