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

JSTL Formatting Tags7




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA