• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu Display

 
fawaad bawla
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • 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.







 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64175
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64175
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fix that error and then try again. You'll let us know.
 
Stefan Evans
Bartender
Posts: 1640
9
  • 1
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64175
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic