Struts 1中我可以这样做!!!
ModuleConfig config = (ModuleConfig) context.getAttribute("org.apache.struts.action.MODULE");
return HandlerUtil.getForward(method, config);
public static String getForward(Method method, ModuleConfig config) {
String actionName = getActionName(method);
String forward = (actionName + "_" + method.getName()).toLowerCase();
if (config.findActionConfig("/" + actionName).findForwardConfig(forward) == null) {
forward = DEFAULT_FORWARD;
}
return forward;
}
[b]问题补充:[/b]
Jsp中那样写!但我要的是这么拦截到Action中的Forward!能给些具体JAVA代码吗?