From 981ea6ffc99c5e058a9185ace6504e4ca7620b95 Mon Sep 17 00:00:00 2001 From: rkv Date: Sun, 18 Nov 2012 11:35:46 +0000 Subject: [PATCH] MenuAction mapping is fixed for the case if no item is selected. The default selection is introduced in the Menu. If "none" is returned? i.e. the menu is empty, then home page is displayed. The sysadmin menu is working now. The static menu is removed from Action class. The left menu is retrieved from the action context now. --- Workspace/Siman/WebContent/jsp/menuitem.jsp | 6 ++- .../Siman/src/org/splat/simer/Action.java | 25 ------------ .../Siman/src/org/splat/simer/MenuAction.java | 9 +++-- Workspace/Siman/src/org/splat/wapp/Menu.java | 18 +++++++++ .../Siman/src/org/splat/wapp/SimpleMenu.java | 39 ++++++++++--------- .../Siman/src/spring/applicationContext.xml | 16 ++++---- Workspace/Siman/src/struts.xml | 3 +- 7 files changed, 58 insertions(+), 58 deletions(-) diff --git a/Workspace/Siman/WebContent/jsp/menuitem.jsp b/Workspace/Siman/WebContent/jsp/menuitem.jsp index 2eb236e..57f88f8 100644 --- a/Workspace/Siman/WebContent/jsp/menuitem.jsp +++ b/Workspace/Siman/WebContent/jsp/menuitem.jsp @@ -7,7 +7,8 @@ <%@ page import="org.splat.simer.Action"%> <%@ taglib prefix="s" uri="/struts-tags"%> - + <%@page import="com.opensymphony.xwork2.ActionContext"%> +