File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts-layout menu config problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-layout menu config problem" Watch "struts-layout menu config problem" New topic

struts-layout menu config problem

Steve Kincer

Joined: May 19, 2004
Posts: 7
I'm trying to get struts menu going and I get the following exception when my JSP that uses the menu loads. I called my config file strutsmenu.config, but I'm not sure what directory I'm supposed to place it in (same dir as the JSP?).

SEVERE: Servlet.service() for servlet debugjsp threw exception
javax.servlet.jsp.JspException: dynMenu: missing attribute Can't find bundle for base name strutsmenu.config, locale default
at fr.improve.struts.taglib.layout.DynMenuTag2.doPrintMenuConfig(
at fr.improve.struts.taglib.layout.DynMenuTag2.doPrintMenu(
at fr.improve.struts.taglib.layout.DynMenuTag2.doEndLayoutTag(

My menu looks like this:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %>
<layout ynMenu config="strutsmenu" left="100" top="150">
<layout:menuItem key="menu.inbox" link="inbox.jsp"/>
<layout:menuItem key="menu.cust" link="custSearch.jsp?searchSource=mainMenu" />
<layout:menuItem key="menu.query" link="querySearch.jsp?searchSource=mainMenu" />
<layout:menuItem key="menu.admin">
<layout:menuItem key="menu.staff" link="staffSearch.jsp"/>
<layout:menuItem key="menu.fileimport" link="fileImport.jsp"/>
</layout ynMenu>

I'm using tiles if that matters, tomcat 5.5, and jbuilder.
I agree. Here's the link:
subject: struts-layout menu config problem
It's not a secret anymore!