Tags in Spring MVC

How much time will it take to learn Spring and Hibernate? Simple Spring Boot Example Spring Boot Console Application Spring Boot Tutorials Advantages of Spring Framework Spring 4 Introduction and example Features of Spring Framework 5 How to make Spring web Login form? How to make Simple form in Spring web? Spring, Hibernate login and registration application Spring Framework Tutorial for beginners with examples Spring Framework for Apache Hadoop 2.3.0 GA released Spring Framework 4.1 GA is released with major features Why to use Spring Framework? Spring Framework 4.1 - First Release candidate available Spring IO Platform 1.0.0 Released Spring 4: Login Form using Spring MVC and Hibernate Example Spring 4 MVC Login form Example with source code Spring 4 MVC Hello World Example: Spring 4 MVC Tutorial will full source code Spring Web MVC Application Error:ClassNotFoundException: DispatcherServlet on deploying Features of Spring 4 Spring Framework 4.0 released Spring Framework 4: Spring Framework 4 Tutorials and Example Spring Integration 3.0 Release is released and available for download Spring Tutorial for Beginners Java Springs Framework Tutorial Spring Architecture Spring Framework Tutorials database spring registration form Spring Login Example Roseindia Spring Tutorial Spring Tutorial Spring 3.2 MVC insert and retrieve blob from the database The hidden tag The errors tag net.roseindia.dao net.roseindia.service net.roseindia.model net.roseindia.controller Spring 3.2 MVC Hibernate Example

Tags in Spring MVC

This section is all about Spring MVC Tags.

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:

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://www.springframework.org/tags" 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 http://www.roseindia.net/jstl/index.shtml.

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



Copyright © RoseIndia.Net 2018