*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help with JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help with JSTL" Watch "Help with JSTL" New topic
Author

Help with JSTL

Stein Vom
Ranch Hand

Joined: Jul 10, 2005
Posts: 78
A small example of jstl is not working. Although i copied the standard.jar and jstl.jar in WEB-INF/lib folder and made the entry required in web.xml. Can somebody help me?
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026

made the entry required in web.xml


What entry did you make?

Try restarting your server.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Stein Vom
Ranch Hand

Joined: Jul 10, 2005
Posts: 78
Thanx for the reply.

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

Copied standard.jar and jstl.jar in WEB-INF/lib folder.

Wrote in web.xml:
<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 http://java.sun.com/xml/ns/j2ee/web-app_2_3.xsd" version="2.3">

But in browser it is showing:
org.apache.jasper.JasperException: 絶対URI: http://java.sun.com/jsp/jstl/core はweb.xmlまたはこのアプリケーションを配備したJARファイルのどちらかでも解決できません
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
....
....
....


Ya, i tried that too. Restarted the Tomcat several times.
But the page showing the same exception.
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
SCWCD Exam covers servlet spec 2.4 and jsp spec 2.0
Use tomcat 5.X
[ January 31, 2006: Message edited by: Vishnu Prakash ]
Stein Vom
Ranch Hand

Joined: Jul 10, 2005
Posts: 78
Thanx again. But it showing the same exception. I restarted the tomcat also.
Ravi Appana
Greenhorn

Joined: Aug 25, 2004
Posts: 13
The version entry in the web.xml seems wrong. Please check it to be 2.4


Ravi Sankar Appana<br />SCJP 1.4
Stein Vom
Ranch Hand

Joined: Jul 10, 2005
Posts: 78
Hello Ravi, thanks for the reply. Anyway it is my mistake that i didn't mentioned later, how that problem was later solved. I read somewhere that instead of using c.tld, we should use c-rt.tld. So i mentioned c-rt.tld in web.xml. That worked. Anyway thanks again for the effort.
 
jQuery in Action, 2nd edition
 
subject: Help with JSTL
 
Similar Threads
formating lines in jsp
Thanks ranch
fmt bundle help
Display tags and Jsp Scriptlet
getOutputStream() has already been called for this response