Hi All, Now my web application is using Struts Menu 2.0 to render tabbed Menus using Velocity template. Big thanks go to Matt and Lance for their valuable suggestions. I just followed the steps sent by Matt and finally added target="_top" in tabs.html: <li><a href="$!{menu.url}" target="_top" title="$title">${title}</a>
That's all I did to replace the whole body of the window when I click on a tabbed menu. Regards, Reddy Pingili > -----Original Message----- > From: Matt Raible [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 1:07 PM > To: [EMAIL PROTECTED] > Subject: Re: [struts-menu] A question on struts menus and frames... > > Here's the quick and dirty. > > 1. Add Velocity JARs to your WEB-INF/lib directory. These are in the > sample app's WAR file. > 2. Add globalMacros.vm to your WEB-INF/classes directory. This is also > in the sample app's WAR file. > 3. Change the displayer value to be "VelocityDisplayer" and change your > config to point to a template. > > See the examples in the WAR file for more info. > > HTH, > > Matt > > On Jan 7, 2004, at 10:45 AM, Pingili, Madhupal wrote: > > > Thank you Lance. If it's not too much to ask, can you give me a brief > > summary on using VelocityDisplayer? > > I have not developed anything using Velocity tool. > > I need to know like WEB-INF/xxxxx.xml file changes, adding > > velocity-1.3.1.jar files etc. > > > > Thank you, > > Reddy Pingili > > > >> -----Original Message----- > >> From: Lance Lavandowska [SMTP:[EMAIL PROTECTED] > >> Sent: Wednesday, January 07, 2004 12:05 PM > >> To: [EMAIL PROTECTED] > >> Subject: Re: [struts-menu] A question on struts menus and frames... > >> > >> I've attached the tabs.vm that I sent to the list a while ago, which > >> includes support for 'target'. > >> > >> Matt Raible wrote: > >> > >>> It doesn't look like this Displayer supports a "target" attribute. > >>> You > >>> can enter this as a bug if you'd like to see it on there. If you > >>> can, > >>> you could use the VelocityDisplayer with the tabs.html template - > >>> then > >>> you'll have full control over the HTML it produces. > >> << File: tabs.vm >> > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Perforce Software. > > Perforce is the Fast Software Configuration Management System offering > > advanced branching capabilities and atomic changes on 50+ platforms. > > Free Eval! http://www.perforce.com/perforce/loadprog.html > > _______________________________________________ > > struts-menu-user mailing list > > [EMAIL PROTECTED] > > https://lists.sf.net/lists/listinfo/struts-menu-user > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > struts-menu-user mailing list > [EMAIL PROTECTED] > https://lists.sf.net/lists/listinfo/struts-menu-user ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-user