Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

relating to core-jstl examples source-code  RSS feed

 
kesava chaitanya
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have download examples of source code from www.core-jstl.com;when i am trying to run the example of " empty of chapter-2 of expression language" i am getting this error;
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
in the examples source code i dont see tld file;does tld file neccessary to run the program;
and also i have one doublt in the jsp program he is writing
<%@ taglib uri='http://java.sun.com/jstl/core' prefix='c' %>
what does it species>will it go that webpage?
with regards
chaitanya
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kesava chaitanya:
...in the examples source code i dont see tld file;does tld file neccessary to run the program;

For regular taglibs, the .tdl file is needed in the WEB-INF directory of the web application. Without that descriptor, the JSP compiler has no idea how to map your taglib syntax to their implementation classes.
Maybe the .../jstl/core URI is a "magic URI", which the JSP compiler recognizes and therefore does not need a pointer to an existing .tld file?
[ April 25, 2003: Message edited by: Lasse Koskela ]
 
Gavin Bong
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using the JSTL RI from Apache; just make sure that jstl.jar is in the lib directory for the webapp. You do not need to declare the taglibs in the web.xml.
Read this
[ April 25, 2003: Message edited by: Gavin Bong ]
[ April 25, 2003: Message edited by: Gavin Bong ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!