File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Menu Display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Menu Display" Watch "Menu Display" New topic
Author

Menu Display

fawaad bawla
Greenhorn

Joined: Dec 26, 2011
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61095
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
fawaad bawla
Greenhorn

Joined: Dec 26, 2011
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61095
    
  66

Fix that error and then try again. You'll let us know.
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
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

Joined: Jan 10, 2002
Posts: 61095
    
  66

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Menu Display