Re: Problem with JSTL

Kris Schneider <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
The correct URI for JSTL 1.1 is: http://java.sun.com/jsp/jstl/xml

As you've noted, the parse tag would be used like so:

<x:parse var="doc" doc="${val}"/>

Make sure you have the proper JAR files for the Standard 1.1 taglib 
installed (instead of Standard 1.0).

Make sure that the value of ${val} doesn't contain any content before the 
prolog/declaration: <?xml version="1.0"?>

Make sure that the value of ${val} doesn't contain any non-XML content 
before the root element.

Emandi, Srinivasrao wrote:
> Hi all
> 	I m using jstl to parse xml in my jsp,
>  i m facing a strange problem with the uri in <%@ taglib 
> 	
> The following code is working fine:
> 	<%@ taglib prefix="x"   uri="http://java.sun.com/jstl/xml" %>
> 		<c:set var="val" value="${requestScope.responseXML}" />
> 		<x:parse var="doc" xml="${val}" />
> however xml in <x:parse ..is deprecated one i want to use "doc" in place of "xml" , but its throwing an exception :"Attribute doc invalid for tag parse according to TLD"
> If i use <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %> then the result is "javax.servlet.jsp.JspException: Content is not allowed in prolog."
> Version i m using : Tomcat : 5.0.3 
> 		   jstl :1.1
> 		  jetspeed 2
> 	Can any one please give some idea to solve this problem.

-- 
Kris Schneider <mailto:[email protected]>
D.O.Tech       <http://www.dotech.com/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.