Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1111
  • Last Modified:

Setting baseName for resource bundle at one place in JSTL

Hi Iam using JSTL Format tag in my project. The following is the code snippet.
       <fmt:bundle basename="keystone/formLabels">
                             <fmt:message key="msg1.text"/>

so where iam using this <fmt:message key="msg1.txt"> iam forced to set the resource bundle base name. Iam looking for a solution where we set the base name for resouce bundle at one place and use fmt:message multiple times. Is this achievable. If possible give some example.

Thanks & Regards,

Ravi Kiran Reddy Katkuri
Ravi Kiran Reddy Katkuri
1 Solution
<fmt:setBundle basename="keystone/formLabels" />

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now