You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Emandi, Srinivasrao" <sr...@logicacmg.com> on 2006/06/02 08:15:01 UTC

Problem with JSTL

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.





This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Re: Problem with JSTL

Posted by Anton Kunze <An...@t-online.de>.
JSTL needs Servlet 2.4, look at your web.xml. Runs Jetspeed 2 with a Servlet 
2.4 Declaration?

best regards


----- Original Message ----- 
From: "Emandi, Srinivasrao" <sr...@logicacmg.com>
To: <je...@portals.apache.org>
Sent: Friday, June 02, 2006 8:15 AM
Subject: Problem with JSTL



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.





This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an 
intended recipient then please promptly delete this e-mail and any 
attachment and all copies and inform the sender. Thank you.


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