Article:
  A Custom JSP Tag Library for Dynamic Menus
Subject:   jdbcmenu.jsp error
Date:   2004-06-28 13:49:58
From:   sumanish
I created the table HIERARCHYMENU from menu.sql file.


http://localhost:8080/menu-example/jdbcmenu.jsp
gives me the following error..please help. THanks


exception


javax.servlet.ServletException: Unable to Print the Menu.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.jdbcmenu_005fyardi_jsp._jspService(jdbcmenu_005fyardi_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



root cause


java.lang.Error: Unable to Print the Menu.
menu.MenuTag.doEndTag(Unknown Source)
org.apache.jsp.jdbcmenu_005fyardi_jsp._jspx_meth_menu_renderMenuFromDB_0(jdbcmenu_005fyardi_jsp.java:93)
org.apache.jsp.jdbcmenu_005fyardi_jsp._jspService(jdbcmenu_005fyardi_jsp.java:64)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Main Topics Newest First

Showing messages 1 through 1 of 1.

  • jdbcmenu.jsp error
    2004-07-01 02:54:24  Dazzler [View]

    Hi

    I didn't use the JDBC approach but used the XML but had the same issue. It basically meant that it couldn't see the XML file. I'd say it's pretty much the same problem with your stuff, eg can't see the table in the db..