Spring MVC JSTL Configuration Last Updated : 05 Apr, 2022 Comments Improve Suggest changes Like Article Like Report JavaServer Pages Tag Library (JSTL) is a set of tags that can be used for implementing some common operations such as looping, conditional formatting, and others. Here we will be discussing how to use the Maven build tool to add JSTL support to a Spring MVC application. also, you'll learn how to activate JSTL tags in a Spring MVC application. Step 1: JSTL maven dependencies XML <dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> <scope>runtime</scope> </dependency> <dependency> <groupid>taglibs</groupid> <artifactid>standard</artifactid> <version>1.1.2</version> <scope>runtime</scope> </dependency> Step 2: To resolve JSTL views, use InternalResourceViewResolver. 2.1: Spring JSTL Java Configuration // Annotation @Bean // Method public ViewResolver configureViewResolver() { InternalResourceViewResolver viewResolve = new InternalResourceViewResolver(); viewResolve.setPrefix("/WEB-INF/jsp/"); viewResolve.setSuffix(".jsp"); return viewResolve; } 2.2: Spring JSTL XML Configuration XML <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"></property> <property name="prefix"> <value>/WEB-INF/jsp/</value> </property> <property name="suffix"> <value>.jsp</value> </property> </bean> Step 3: Use JSTL tags in JSP files HTML <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <h1>Welcome message : <c:out value="${message}"></c:out></h1> Comment More infoAdvertise with us Next Article Spring MVC JSTL Configuration D dikshanandre2403 Follow Improve Article Tags : Java Java-Spring Java-Spring-MVC Practice Tags : Java Similar Reads Difference Between @Controller and @Service Annotation in Spring Spring Annotations are a form of metadata that provides data about a program. Annotations are used to provide supplemental information about a program. It does not have a direct effect on the operation of the code they annotate. It does not change the action of the compiled program. Spring @Control 5 min read Difference Between @Controller and @RestController Annotation in Spring Spring Annotations are a form of metadata that provides data about a program. Annotations are used to provide supplemental information about a program. It does not directly affect the operation of the code they annotate. It does not change the action of the compiled program. Understanding the differ 3 min read Spring MVC - @RequestParam Annotation The @RequestParam annotation is one of the most commonly used annotations in Spring MVC for handling HTTP request parameters. @RequestParam annotation enables Spring to extract input data that may be passed as a query, form data, or any arbitrary custom data. Key features of @RequestParam annotation 5 min read Query String and Query Parameter in Spring MVC According to Wikipedia "A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML, choosing the appearance of a pag 6 min read How to Make Post Request in Java Spring? Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for security purposes or building large distribution projects. One of the advantages of using JAVA is that Java tries to connect every conc 4 min read How to Make Delete Request in Spring? Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for security purposes or building large distribution projects. One of the advantages of using JAVA is that Java tries to connect every conc 4 min read How to Make get() Method Request in Java Spring? Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for security purposes or building large distribution projects. One of the advantages of using JAVA is that Java tries to connect every conc 3 min read Spring @RequestMapping Annotation with Example The @RequestMapping annotation in Spring MVC is one of the most important annotations used to map HTTP requests to handler methods of MVC and REST controllers. In Spring MVC applications, the DispatcherServlet (Front Controller) is responsible for routing incoming HTTP requests to the handler method 4 min read How to Capture Data using @RequestParam Annotation in Spring? The @RequestParam annotation enables Spring to capture input data that may be passed as a query, form data, or any arbitrary custom data. It is used to bind a web request parameter to a method parameter. Here, we are going to understand these two above lines, and we will see how we can capture data 6 min read Spring @ResponseBody Annotation with Example Spring Annotations allow us to configure dependencies and implement dependency injection through java programs. Those are used to provide supplemental information about a program. It does not have a direct effect on the operation of the code they annotate. It does not change the action of the compil 4 min read Like