aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSTL expressions not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSTL expressions not working" Watch "JSTL expressions not working" New topic
Author

JSTL expressions not working

sarat babu
Greenhorn

Joined: Apr 17, 2006
Posts: 8
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

Joined: Feb 07, 2005
Posts: 643
copy standard.jar also
sarat babu
Greenhorn

Joined: Apr 17, 2006
Posts: 8
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

Joined: Dec 14, 2006
Posts: 40
Hi, Check the name-space in DD's <web-app ...> element.


Thanks and regards,
Elan
sarat babu
Greenhorn

Joined: Apr 17, 2006
Posts: 8
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

Joined: Dec 14, 2006
Posts: 40
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

Joined: Apr 17, 2006
Posts: 8
thanks gowher, Elan
working now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL expressions not working