Issue
I have been trying to migrate my existing Spring MVC project to Springboot everything went well except org.apache.jasper.JasperException exception for some jsp which was working fine earlier here is code and exception
<form:input cssClass="form-control" id="serviceURL"
path="serviceURL" maxlength="250" value='${serviceProviderData.serviceURL}'
oninput="this.value=this.value.toLowerCase();"
onblur="this.value=this.value.trim();return validateserviceURL();"
onclick="clearErrorMsg('serviceURLErrDiv');" />
for this I'm getting Attribute [value] invalid for tag [input] according to TLD
Here is tag which i have included in jsp
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
Exception logs
2017-11-07 14:49:24.941 ERROR 6911 --- [nio-8092-exec-7] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/web] threw exception [/WEB-INF/pages/service.jsp (line: [168], column: [13]) Attribute [value] invalid for tag [input] according to TLD] with root cause
org.apache.jasper.JasperException: /WEB-INF/pages/service.jsp (line: [168], column: [13]) Attribute [value] invalid for tag [input] according to TLD
dependency for jsp rendering
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<!-- <scope>provided</scope> -->
</dependency>
I don't have any idea where I'm doing wrong because same jsp was fine earlier with Spring MVC
Solution
Delete .tld file from WEB-INF location.
Answered By - Amit Mishra
Answer Checked By - Senaida (JavaFixing Volunteer)