Newbee - Velocity and Struts-Menu

Thomas Bednarz <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Hi

Simple newbee question:

I use ONLY Velocity (and Struts) to render my Pages in all of my 
Web-Apps. No JSPs at all.

All examples I was looking at use a JSP page as starting point with some 
jsp tags (<menu:useMenuDisplayer ....... </menu:useMenuDisplayer>). Can 
I use Struts-menu in a VELOCITY ONLY environment without ANY jsp tag 
library? Are there any pointers about how to configure it and a sample 
vm file?

Currently I use very ugly HTML tables as menues located in a frame on 
the top of the pages. All menu entries are dynamically built with 
Velocity depending on the role of a logged-in user. I like to replace 
them with CoolMenu 3 type menues it this is possible.

To process my roles I have derived 
org.apache.struts.action.RequestProcessor and implemented my own 
processRoles() method.  I like to do something similar with struts-menu. 
Preferably the menu should be 'personalized' to a user depending on the 
roles he/she has. This should be done dynamically inside a special 
Struts-Action and rendered by a velocity template, e.g. menu.vm. A 
static XML File which contains all menu items does not fit my needs 
since it is not dynamic based on user roles.

Could anybody help me a step further and point me to samples if there 
are any or tell me what steps I need to do to get this done? Many thanks 
in advance.

Tom


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.