JSTL Formatting <fmt:setBundle> TagThe <fmt:setBundle> tag is used to load the resource bundle and store their value in the bundle configuration variable or the name scope variable. It is used for creating the ResourceBundle object which will be used by tag body. The syntax used for including the <fmt:setBundle> tag is: Let's see the simple example to understand the formatting <fmt:setBundle> tag: Let us define the default resource bundle Main.java as follows: Now, compile the above class as Main.class and make it available in CLASSPATH of your Web application folder. Now you can use the below JSTL tags to display the three vegetables as follows: Output: Next TopicJSTL Core <fmt:message> Tag |