java - How can i use taglib in JSP page -


i know problem has been posted many times every solutions have been posted didn't solve problem whereas issue same. have jsp page , want use taglib in. added line in :

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

my project runs maven 2 included in pom.xml dependency :

<dependency>     <groupid>jstl</groupid>     <artifactid>jstl</artifactid>     <version>1.2</version> </dependency> 

here line in web.xml :

<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 `enter code here`http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">  

and now, here error whatever try :

org.apache.jasper.jasperexception: l'uri absolute: http://java.sun.com/jsp/jstl/core cannot resolved in file web.xml or in others files jar deployed application


when build project, there still nothing in web-inf/lib... doing wrong ? mean, once have configuration put in last post, on project "maven build", displays on screen "build success", launch tomcat , enter url of asp , prints error gave above...

here entire pom.xml given told me somethind go wrong it:

<modelversion>4.0.0</modelversion> <groupid>capg</groupid> <artifactid>capg</artifactid> <version>0.0.1-snapshot</version> <build>     <sourcedirectory>src</sourcedirectory>     <plugins>         <plugin>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.3.2</version>             <configuration>                 <source>1.6</source>                 <target>1.6</target>             </configuration>         </plugin>     </plugins> </build> <dependencies>     <dependency>         <groupid>jstl</groupid>         <artifactid>jstl</artifactid>         <version>1.2</version>     </dependency> </dependencies> 

once packaged war file through maven verify have required jstl-1.2.jar in web-inf/lib directory. if not, perhaps needs fixed in pom.xml.

edit: try adding <packaging>war</packaging> (before build) in pom.xml.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -