spring - No tag “if” defined in tag library imported with prefix “c” -
i have jsp file in spring tags used.
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <c:if test="${!empty employeelist}"> <table class="data"> <tr> <th>firstname</th> <th>lastname</th> <th>email</th> <th>telephone</th> <th>action</th> </tr> <c:foreach items="${employeelist}" var="emp"> <tr> <td>${emp.firstname}</td> <td>${emp.lastname}</td> <td>${emp.email}</td> <td>${emp.telephone}</td> <td><a href="delete/${emp.id}">delete</a>| <a href="update/${emp.id}">update</a> </td> </tr> </c:foreach> </table> </c:if>
it giving me error have mentioned title. running code on tomcat 7 not getting error if run on jboss 7. driving me nuts. kindly help.
i don't know kind of error think have no javax.servlet imported. try add pom.xml dependency
<dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency>
tomcat servlet container without additional jars. jboss more powerful server , has jee libraries build in reason works on jboss , doesn't work on tomcat
Comments
Post a Comment