JSTL x:parse problem

Hi all,

I am using Netbeans 5 to develope a web application and I am having a problem with the xml parsing :

I got JSTL 1.1 Libraries in my WEB-INF folder

but still

i get the error:

"org.apache.jasper.JasperException: According to TLD or attribute directive in tag file, attribute xml does not accept any expressions

"

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

<%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>

<c:import var="file" url="loans.xml"/>

<x:parse var="document" xml="${file}" />

Does somebody know why i get htis error. The netbeans IDE highlights the xml attribute of x:parse as deprecated but even with the doc attribute i get the same error.

thx for any help

Message was edited by:

federico_cs

[861 byte] By [federico_csa] at [2007-11-26 20:57:43]
# 1

Hi there,

You say that you are using JSTL 1.1 libraries, but the

taglib URIs you are using don't correspond to JSTL 1.1 , they are perhaps the ones for JSTL 1.0

Change your tag lib URI to:

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

<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>

make sure that you do have the JAR files for JSTL 1.1 and not JSTL 1.0

JSTL 1.1 and EL requires the following:

1) The latest JSTL 1.1 JAR file

2) Also standard.jar file which comes with the same distribution

3) Proper tag library URIs for JSTL 1.1

4) web.xml should conform to Servlet 2.4 specification this means that the web-app tag should be

that of Servlet 2.4

5) A container that supports Servlet 2.4 and JSP 2.0 - Example Tomcat 5.x

appy77a at 2007-7-10 2:27:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...