java - JSTL.JAR can not be resolved -


I am getting the following error when using jstl in my spring mvc app. & gt; Org.apache.jasper.JasperException: Full Yuri: & gt; Http://java.sun.com/jsp/jstl/core Either Web. Xml & gt; I have downloaded and copied jstl-api-1.2.jar in my code, WebContent / Web-NF / Lib / Directory similar to other libraries.

My web.xml file looks like below.

  & lt; Web-app xmlns: Xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: web = "http: //java.sun .com / xml / ns / javaee / web-app_2_5.xsd "xsi: schema location =" http://java.sun.com/xml/ns/javaee http://java.sun.com / xml / ns / javaee /web-app_2_5.xsd "id =" WebApp_ID "version =" 2.5 "& gt; & Lt; Display-name & gt; Spring3MVC & lt; / Display-name & gt; & Lt; Welcome-file-list & gt; & Lt; Welcome-file & gt; Index.jsp & lt; / Welcome-file & gt; & Lt; / Welcome-file-list & gt; & Lt; Servlet & gt; & Lt; Servlet-name & gt; Spring & lt; / Servlet-name & gt; & Lt; Servlet category & gt; Org.springframework.web.servlet.DispatcherServlet & lt; / Servlet-class & gt; & Lt; Load-On-Startup & gt; 1 & lt; / Load-on-startup & gt; & Lt; / Servlet & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; Spring & lt; / Servlet-name & gt; & Lt; URL pattern & gt; * Html & Lt; / Url pattern & gt; & Lt; / Servlet-mapping & gt; & Lt; / Web application & gt;   

and my Spring-servlet.exml file

   & Lt; Bean id = "Viewroll" class = "org.springframework.web.servlet.view.UrlBasedViewResolver" & gt; & Lt; Property Name = "View Class" Value = "org.springframework.web.servlet.view.JstlView" /> & Lt; Property Name = "Prefix" Value = "/ Web-NF / JSP /" /> & Lt; Property name = "suffix" value = ".jsp" /> & Lt; / Bean & gt; & Lt; / Bean & gt;   

And the title of the JSP file where I'm using the tag is set as below.

  & lt;% @ page session = "false"%> & Lt;% @ taglib prefix = "c" yur = "http://java.sun.com/jsp/jstl/core"% & gt; & Lt;% @ taglib prefix = "FMT" ury = "http://java.sun.com/jsp/jstl/fmt"% & gt;   

I can confirm that I have placed jstl-api-1.2.jar correctly under Lib Headquarters. Please help me solve the problem.

Edit

My LIB Path

  [Myanmar @ Maxhost Spring 3 MVC] $ ls WebContent / WEB- INF / lib / commons-logging.jar org.springframework.core-3.0.1.RELEASE-A.jar jstl-api-1.2.jar org.springframework.expression-3.0.1.RELEASE-A jar org.springframework.asm -3.0.1.RELEASE-A.jar org.springframework.web-3.0.1.RELEASE-A.jar org.springframework.beans-3.0.1.RELEASE-A.jar org.springframework web. Servlet-3.0.1 .RELEASE-A.jar org.springframework.context-3.0.1.RELEASE-A.jar   

was given below but which was previously included in my web. Xml by mistake

  & lt; Dependency & gt; & Lt; Group & gt; Javax.servlet & lt; / Group & gt; & Lt; ArtifactId & gt; JSTL & lt; / ArtifactId> & Lt; Version & gt; 1.2.1 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt;    

Are you using Maven in your project?

Short overview, & Lt; Version & gt; 1.2.1 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt;

Should not be in the web. Xml, this is the dependency management structure of Maven POM [DTD Definition]

Comments

  1. Thank you for information. If You will need to more news about Indian Movers and Packers check this site Packers and Movers in Surat


    Movers and Packers in Vadodara

    ReplyDelete
  2. Noida Packers and movers are one of the best packers and movers in Noida which is tend to provide you best Packers and movers services in noida if you are looking for a best packers and movers in Noida so visit on this link- Shifting In Noida to Delhi

    ReplyDelete

Post a Comment

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -