Share on Google+Share on Google+

Tags in Spring MVC

This section is all about Spring MVC Tags.

Spring MVC Tags


In this section we will learn about the Tag libraries that can be used in spring based application.

Spring MVC framework support many different views with the help of pluggable view. If you are using simple jsp files to generate the UI for your application then use can use JST core, Spring form and Spring tags.

You can add the following lines into your jsp page to use there tags:

<[email protected] uri="" prefix="c"%>
<[email protected] uri="" prefix="form" %>
<[email protected] uri="" prefix="spring" %>

Spring Form tags:

The spring form tags is used to create the user input forms. Here is the list of spring forms tags:

  1. checkbox tag
  2. checkboxes tag
  3. errors tag
  4. form tag
  5. hidden tag
  6. input tag
  7. label tag
  8. option tag
  9. options tag
  10. password tag
  11. radiobutton tag
  12. radiobuttons tag
  13. select tag
  14. textarea tag

Spring spring.tld tags:

The spring.tld tags is used for evaluating errors, setting themes and outputting internationalized messages. These are used while creating the UI for the web applications. Here are the list of spring.tld tags:

  1. bind tag
  2. escapeBody tag
  3. hasBindErrors tag
  4. htmlEscape tag
  5. message tag
  6. nestedPath tag
  7. theme tag
  8. transform tag

JSTL Tags:

You can also use the JSTL tags in Spring MVC applications. You can read in detail about the JSTL tags at

In the future sections we will be showing you the examples of these tags.



Posted on: August 20, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Tags in Spring MVC  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image