This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSP and the fly likes Error when using xml tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Error when using xml tags" Watch "Error when using xml tags" New topic
Author

Error when using xml tags

Jose Mon
Ranch Hand

Joined: Feb 13, 2007
Posts: 30
Consider the following code

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

<c:import var="myxml" url="myxml.xml"/>
<x:parse var="rss" xml="${myxml}"/>

When I am running this I get error message like
According to TLD or attribute directive in tag file, attribute xml does not accept any expressions.

Do anyone know the problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63052
    
  69

As per forum instructions, please include what versions of JSP and JSTL you are using, along with how you have your deployment descriptor declared.
[ February 14, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Error when using xml tags
 
It's not a secret anymore!