When I put <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
I will recieve the following error:
The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
But I have spring-security-taglibs-3.1.3 et al in my /lib folder. Does anyone know what else am I missing?
Spring Security has its own taglib which provides basic support for accessing security information and applying security constraints in JSPs.
Spring Security provides its own tags for jsp pages. These tags are used to access security information and apply security constraints in JSPs. The following tags are used to secure view layer of the application.
In Spring MVC applications using JSP, we can use the Spring Security tags for applying security constraints as well as for accessing security information. Spring Security Tag library provides basic support for such operations.
Adding this dependency fixed it for me (using 3.1.X.RELEASE) :
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-taglibs</artifactId> <version>${your-version}</version> </dependency>
The taglib now works properly:
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With