Blogging Roller

Dave Johnson on open web technologies, social software and Java

Roller MenuTag

Matt mentioned the idea of adding an option for drop-down menus in the Editor UI and mentioned StrutsMenu. Some time ago, I looked at StrutsMenu and it did not do quite what I wanted to to, so I set about creating a generic JSP menu tag using an MVC architecture. The Roller MenuTag reads the menu configuration from an XML file and then calls a Velocity script to render the menu.

So, creating a new drop-down menu should be as simple as writing a new Velocity script to spit out the right code to invoke CoolMenu or Hiermenu or what have you.

Looking back, I probably should have used Struts Menu as a base for my work, but I wanted to try out the ideas in Gregory Gerard's article on Accelerating JSP Tag Development with Jakarta Velocity
Comments:

Post a Comment:
  • HTML Syntax: Allowed