protected XmlWebApplicationContext factory;
protected TemplateService templateService;
protected JspEngineImpl engine;
protected void initServlet(String webXml) throws Exception {
ServletRunner runner = new ServletRunner(new File(srcdir, webXml), "");
client = runner.newClient();
ic = client.newInvocation("http://localhost:8080/app1");
servletContext = new ServletContextWrapper(ic.getServlet().getServletConfig().getServletContext());
request = ic.getRequest();
response = ic.getResponse();