All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simplericity.jettyconsole.jsp.JspPlugin Maven / Gradle / Ivy

The newest version!
package org.simplericity.jettyconsole.jsp;

import org.simplericity.jettyconsole.api.JettyConsolePluginBase;
import org.eclipse.jetty.webapp.WebAppContext;

import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;

/**
 */
public class JspPlugin extends JettyConsolePluginBase {


    public JspPlugin() {
        super(JspPlugin.class);
    }

    @Override
    public void beforeStart(WebAppContext context) {

        String[] current = context.getConfigurationClasses();

        List cfn = new ArrayList(Arrays.asList(current));
        cfn.add(JasperInUnpackedWarUglyHackConfiguration.class.getName());
        context.setConfigurationClasses(cfn.toArray(new String[cfn.size()]));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy