Package com.github.dandelion.core.web

Examples of com.github.dandelion.core.web.DandelionServlet


    String webAppResources = classLoader.getResource("webapp").toExternalForm();
    context.setContextPath("/");
    context.setResourceBase(webAppResources);
    context.setClassLoader(classLoader);

    context.addServlet(new ServletHolder(new DandelionServlet()), DandelionServlet.DANDELION_ASSETS_URL_PATTERN);
    context.addFilter(new FilterHolder(new DandelionFilter()), "/*", 0);

    ServletHolder jsp = context.addServlet(JspServlet.class, "*.jsp");
    jsp.setInitParameter("classpath", context.getClassPath());

View Full Code Here

TOP

Related Classes of com.github.dandelion.core.web.DandelionServlet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.