View Full Version : Jims Menu v5.7

10-22-2004, 12:17 PM
Hey everyone.

I am attempting to implement Jims Menu v5.7 into our application. I have created a sample jsp to try the menu out, got everything working, looks great. However when I try to include this sample jsp in with another jsp, I an 'object expected' error at the line <body onload='init()'>. I have tried using the <jsp:include page=''/> tag as well as the JSTL <c:import url='' /> tag. Any ideas?


10-22-2004, 12:20 PM
Make sure you declare the <script src="menu.js"></script> before the body onload tag.


10-22-2004, 12:22 PM
yeah, I declare both <script> tags inside the <head> tag. I have also verified that I have the correct paths - for both the <script> tags as well as the browser.js

10-22-2004, 01:14 PM
heres some more info.

the <include> tag works when I call the main jsp (the one that includes my menu.jsp), but since this is a struts application, most of the time the execute method of the ActionClass gets called first. This is where I am having the problem.