
org.ocpsoft.prettytime.samples.jstl.JstlSampleLauncher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sample-jstl Show documentation
Show all versions of sample-jstl Show documentation
A usage sample of PrettyTime JSTL integration module
package org.ocpsoft.prettytime.samples.jstl;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
public class JstlSampleLauncher {
public static void main(String[] args) throws Exception {
String weppAppHome = args[0];
Integer port = 8080;
Server server = new Server(port);
WebAppContext webapp = new WebAppContext();
webapp.setContextPath("/");
webapp.setCompactPath(true);
webapp.setDescriptor(weppAppHome + "/WEB-INF/web.xml");
webapp.setResourceBase(weppAppHome);
webapp.setParentLoaderPriority(true);
server.setHandler(webapp);
server.start();
server.join();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy