Tony, I suggest checking out a tiles Controller. It could create the menus for you in a tile-based page WITHOUT needing to call multiple actions. Details on this can be found in Cedric Dumoulin's Tiles Advanced Features PDF. Link: http://www.lifl.fr/~dumoulin/tiles/ with an instructional PDF in the "Welcome" section listed as "Learn Tiles Advanced Features".
Struts-menu might fit but it depends on where and when you want to instantiate your two menus. Why do I recommend avoiding an Action calling another Action? Because it requires the whole request chain to be processed again - request parameters and all. With a tiles action, you can have it in your template or only in select pages, depending on your requirement, i.e. a member's menu that might only be on member pages or a generic menu for all pages. That is left up to you. Again, this is just one of many opinions which might guide you on your way to finding a solution that fits your situation and your coding style. Regards, David -----Original Message----- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 3:07 PM To: Struts Users Mailing List Subject: My IncludeAction-where to forward My webapp is standard. It has a left side menu pane and right side content pane. Both are dynamic and generated by struts action. I would like to have two different Actions for menu and content. For the menu aciton, I would like to use IncludeAction so that is could be included in my jsps. Thus, I derived IncludeAction and put me stuff in execute. But the problem is after everything is done, where should the action go? Here is my action code: public class MenuAction extends IncludeAction { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse respose) throws Exception { //my stuff... return mapping.????; } } Here is my action defination in struts-config.xml: <action path="/menu" type="xxx.MenuAction" name="menuForm" scope="request" validate="true" parameter="/pages/menu.jsp"/> Could anyone help? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]