Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL expressions not working

 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I just copy the jstl.jar to the WEB-INF/lib, i used,
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> in the jsp.
I am getting error "This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application"

Any one help me to resolve this issue, should i need any extra configuration in web.xml or anything?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
copy standard.jar also
 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am "getting same error after copy the standard.jar" aslo

[This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application]: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
 
Elan Ram
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Check the name-space in DD's <web-app ...> element.
 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the web.xml, i am using in my workspace

<web-app id="WebApp">
<display-name>mytestproj</display-name>
<servlet>
<servlet-name>MyExam1</servlet-name>
<display-name>MyExam1</display-name>
<servlet-class>foo.MyExam1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyExam1</servlet-name>
<url-pattern>/example1</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
 
Elan Ram
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sarat use the following:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks gowher, Elan
working now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic