• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JasperException with RSS and JSTL

 
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

I am getting the following exception when trying to invoke a JSP page (which uses JSTL for RSS functionality):



MyPage.jsp's contents are:



Any help, suggestions, and tips are greatly appreciated!

Thanks again,
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're using JSTL 1.0 (uri="http://java.sun.com/jstl/xml"), and the xml attribute of the parse tag does not accept expressions like EL.

Maybe you want to try JSTL1.1 (uri="http://java.sun.com/jsp/jstl/xml"), which accepts expressions. The xml attribute is deprecated in 1.1, so use the doc attribute instead.
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just posting a solution after googling about this problem. Hope you will solved your problem with the help from Josh Brown. This is what he wrote

If you're getting the error "According to TLD or attribute directive in tag file, attribute items does not accept any expressions.", you're probably using an outdated URI for the core tag library.

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

1.1 URI
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic