{
ActionServlet actionServlet = new ActionServlet();
actionServlet.init(pageContext.getServletConfig());
actionServlet.init();
ApplicationConfig appConfig = new ApplicationConfig("");
pageContext.setAttribute(Action.APPLICATION_KEY, appConfig,
PageContext.APPLICATION_SCOPE);
ActionMapping mapping = new ActionMapping();
mapping.setName(ACTION_NAME);
mapping.setPath(convertActionNameToPath(mapping.getName()));
ActionFormBean formBean =
new ActionFormBean(mapping.getName(), FORM_BEAN_CLASS);
appConfig.addActionConfig(mapping);
appConfig.addFormBeanConfig(formBean);
HttpServletResponse response =
(HttpServletResponse)pageContext.getResponse();
String encodedURL =