Learn how to a build a cloud-first strategyRegister Now

x
  • 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.
<code>
       <fmt:bundle basename="keystone/formLabels">
                             <fmt:message key="msg1.text"/>
       </fmt:bundle>
</code>

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,
Rave

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

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