java - Taglibs are not recognized when war deployed to jetty 8 -



java - Taglibs are not recognized when war deployed to jetty 8 -

i asking after 1 day struggling simple problem. have personal web application i've been developing on tomcat on localhost (no problem) since want save memory on server i've decided deploy on jetty in production use. , in moment problem came. can not figure out right configuration of things. files follow:

relevant part of pom.xml

<dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> </dependency> <dependency> <groupid>taglibs</groupid> <artifactid>standard</artifactid> <version>1.1.2</version> </dependency>

web.xml

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <listener> <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener> <context-param> <param-name>contextconfiglocation</param-name> <param-value>/web-inf/applicationcontext.xml, web-inf/hibernatecontext.xml</param-value> </context-param> <servlet> <servlet-name>appservlet</servlet-name> <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class> <init-param> <param-name>contextconfiglocation</param-name> <param-value></param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>appservlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>

and when render jsp obtain

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

instead of recognize taglib.

any help appreciated. give thanks you.

i think jstl may require dependency:

<dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> <scope>provided</scope> </dependency>

java maven jetty jstl taglib

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -