According to [1], you cannot iterate with ResourceBundle#getKeys() like
other normal Java objects any more since JSP2.1.
You may still use the scriptlet code instead of JSTL tags.
[1]
https://community.oracle.com/thread/1398785?start=0&tstart=0
On 7/9/15 9:39 AM, Jasper Floor wrote:
> hmm...I think maybe you can't iterate over the Set then...you might have
> to convert this to a List. I wouldn't do that on the Jsp. You should
> either write your own tag or do this in the backing component class.
>
> Come to think of it, iterating over a set is a bit strange as it doesn't
> have an order. If you care about order.
>
> mvg,
> Jasper
>
> On Thu, Jul 9, 2015 at 3:16 PM, Mike Trinh <
mike....@incentro.com
> <mailto:
mike....@incentro.com>> wrote:
>
> Hey Jasper,
>
> I added the code to my jsp but im getting a stacktrace. I have tried
> both the keySet and getKeys
>
> Op donderdag 9 juli 2015 14:41:57 UTC+2 schreef Jasper Floor:
>
>
>
> On Thu, Jul 9, 2015 at 1:26 PM, Mike Trinh
> <
mike....@incentro.com> wrote:
>
> Hey Jasper,
>
> Sorry for my late reply. Is it possible to do this is the
> jsp file?
>
>
> Yes indeed.
>
> <fmt:setBundle basename="
some.bundle.name
> <
http://some.bundle.name>" var="someBundle"/>
> <mailto:
hippo-c...@googlegroups.com>
> <mailto:
hippo-communi...@googlegroups.com>.
> <mailto:
hippo-communi...@googlegroups.com>.
w....@onehippo.com www.onehippo.com
Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US
+1 877 414 4776 (toll free)
Europe
+31(0)20 522 4466