Javatpoint Logo
Javatpoint Logo

JSTL Formatting <fmt:setBundle> Tag

The <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 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:


JSTL Formatting Tags7

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA