private String scopeKey;
public String execute() throws Exception {
ActionContext ctx = ActionContext.getContext();
ActionConfig actionConfig = ctx.getActionInvocation().getProxy().getConfig();
Action action = null;
try {
action = (Action) ObjectFactory.getObjectFactory().buildBean(className, null);
} catch (Exception e) {
throw new StrutsException("Unable to create the legacy Struts Action", e, actionConfig);
}
// We should call setServlet() here, but let's stub that out later
Struts1Factory strutsFactory = new Struts1Factory(Dispatcher.getInstance().getConfigurationManager().getConfiguration());
ActionMapping mapping = strutsFactory.createActionMapping(actionConfig);
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
ActionForward forward = action.execute(mapping, actionForm, request, response);
ActionMessages messages = (ActionMessages) request.getAttribute(Globals.MESSAGE_KEY);
if (messages != null) {
for (Iterator i = messages.get(); i.hasNext(); ) {
ActionMessage msg = (ActionMessage) i.next();