Velocity-based CSS Drop-down (Vertical) + DB-driven

"Michael Laccetti" <michael-1DHYbOjWH/[email protected]> Mon, 5 Mar 2007 00:41:25 -0500
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <000001c75ee8$f5bee320$e13ca960$@com>
In my never-ending quest to make more life for myself, I decided to use
Struts Menu in (another) project.  I've used it before in other projects,
generally using Velocity + XTree (and sometimes adding permissions into the
mix).  For this project, I went with Velocity and the CSS-based drop-down
menu, all driven dynamically from a database.  Getting it to work wasn't too
horrible, but I seem to have come up with a case where things fall apart.

I have the current menu layout (I hope that the tabs make it through
properly, if not I've put a level number beside them):


1 Home	/index
2	View Reports	/browse
2	About			/about
1 Login	/login
1 Admin	/admin/index
2	Manage Reports	/admin/reports/browse
3		Create Report	/admin/reports/create
2	Manage Schedule	/admin/schedule/browse
3		Schedule Report	/admin/schedule/create
2	Manage Users			/admin/users/browse
3		Create User			/admin/users/create
1 Logout	/logout


With the 'Create User' item left in, the template seems to leave out a final
</ul> that would close off the Create User menu item.  Unfortunately I'm a
bit of a newb when it comes to Velocity, so I can't say specifically what is
wrong, just that it is.  It seems to have something to do with going from a
third level item to the top level, if that is any help.

If anybody can help me out with this, it'd be greatly appreciated.

Mike

 
------------------------------
Michael Laccetti
S2G Limited
(416)558-9718



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV