tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Premont,Bruno [CIS]" <Bruno.Prem...@ec.gc.ca>
Subject RE: Cannot get xml in JSTL 1.1 to work
Date Tue, 28 Sep 2004 21:07:13 GMT
jstl 1.1.
All other taglib work fine (core, sql, fmt, etc) I only have problems
with the xml.
For example, this very simple jsp file bumps:

<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<x:parse var="doc" scope="application">
<?xml version="1.0"?>
<a>
 <b>
 This is b
 </b>
</a>
</x:parse>

<html><head><title>Site</title></head>
<body bgcolor="white">
<h2>Site</h2>
Siteid: <x:out select="$doc//b" />
<hr>
</body>
</hml>

Bruno.



-----Original Message-----
From: Phillip Qin [mailto:Phillip.Qin@shareowner.com] 
Sent: Tuesday, September 28, 2004 4:57 PM
To: 'Tomcat Users List'
Subject: RE: Cannot get xml in JSTL 1.1 to work


JSTL works fine for me. I use it in my struts jsp pages. Which version
of JSTL do you use? 1.0 or 1.1?

-----Original Message-----
From: Premont,Bruno [CIS] [mailto:Bruno.Premont@ec.gc.ca] 
Sent: September 28, 2004 4:54 PM
To: tomcat-user@jakarta.apache.org
Subject: Cannot get xml in JSTL 1.1 to work


Hi,
 
I am running Tomcat 5.0.27 on both RedHat linux ES 3.0 and Windows XP.
Trying to run any jstl-examples jsp pages (that I got from the sun web
site), I get:
 
javax.servlet.ServletException:
com/sun/org/apache/xpath/internal/VariableStack
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:758)
org.apache.jsp.pages.views.site.site_005fcontent_jsp._jspService(site_00
5fcontent_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Trying to resolve the problem, I added a few .jar files I thought could
be missing (see files dated Sep 28).  But I get the same error. Content
of WEB-INF/lib/
 
 
-rw-r--r--    1 root     root        46213 Dec 13  2003
orataglib_3_0.jar
-rw-r--r--    1 root     root        15783 Dec 13  2003
oraclasses_3_0.jar
-rw-r--r--    1 root     root         6727 Sep 18 12:29
jdbc2_0-stdext.jar
-rw-r--r--    1 root     root        65368 Sep 18 12:29 jakarta-oro.jar
-rw-r--r--    1 root     root        46865 Sep 18 12:29
commons-validator.jar
-rw-r--r--    1 root     root        31605 Sep 18 12:29
commons-logging.jar
-rw-r--r--    1 root     root        63980 Sep 18 12:29 commons-lang.jar
-rw-r--r--    1 root     root        22379 Sep 18 12:29
commons-fileupload.jar
-rw-r--r--    1 root     root       109096 Sep 18 12:29
commons-digester.jar
-rw-r--r--    1 root     root       165119 Sep 18 12:29
commons-collections.jar
-rw-r--r--    1 root     root       118726 Sep 18 12:29
commons-beanutils.jar
-rw-r--r--    1 root     root          321 Sep 18 12:29 README
-rw-r-----    1 root     root       226061 Sep 18 12:29
mysql-connector-java-3.0.9-stable-bin.jar
-rw-r--r--    1 root     root        46747 Sep 18 12:29 jstl.jar
-rw-r--r--    1 root     root       498051 Sep 18 12:29 struts.jar
-rw-r--r--    1 root     root       960372 Sep 18 12:29 standard.jar
-rw-r--r--    1 root     root        26881 Sep 28 15:39 dom.jar
-rw-r--r--    1 root     root        27049 Sep 28 15:39 jaxp-api.jar
-rw-r--r--    1 root     root        26437 Sep 28 15:40 sax.jar
-rw-r--r--    1 root     root      1271111 Sep 28 15:40 xalan.jar
-rw-r--r--    1 root     root       972027 Sep 28 15:40 xercesImpl.jar

I am really stuck!
Bruno.
 


!DSPAM:4159cf7b183645550514907!

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message