• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Menu Display

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

I am getting the following error which i am unable to resolve :
menudisplay.jsp (line: 32, column: 2) According to TLD or attribute directive in tag file, attribute items does not accept any expressions

on this line ${repository.topMenus}.

I have added jstl1.2 and jstl standard jar files in lib. i am using tomcat7 and following are the entries done:

In jsp page

<%@ page isELIgnored ="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_rt" %>

In web.xml

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core_rt</taglib-uri>;
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</jsp-config>

<listener>
<listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>
</listener>


Please let me know where am i going wrong asap.







 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This:

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

is very, very wrong.

That is not the URI for the JSTL 1.2.

A quick google search should show you the correct URI.
 
fawaad bawla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this the only thing where i am going wrong?

Is the rest of the things which I have specified right?

 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fix that error and then try again. You'll let us know.
 
Bartender
Posts: 1845
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
having entries for the tag library in your web.xml file is not required, and in fact undesirable.
I would recommend removing the <tag-lib> section from web.xml.


The isElIgnored directive should not be required.
EL should be enabled by default
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stefan Evans wrote:having entries for the tag library in your web.xml file is not required, and in fact undesirable.
I would recommend removing the <tag-lib> section from web.xml.

The isElIgnored directive should not be required.
EL should be enabled by default


Ah yes, I missed those. Remove all unnecessary goop.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic