Skip to content

Instantly share code, notes, and snippets.

@jamesnguyen101
Last active December 15, 2015 21:18
Show Gist options
  • Save jamesnguyen101/5324308 to your computer and use it in GitHub Desktop.
Save jamesnguyen101/5324308 to your computer and use it in GitHub Desktop.
package com.mycomp;
import ognl.OgnlRuntime;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import java.util.logging.Logger;
/**
* To allow works Struts 2 with Google App Engine
*/
public class InitListener implements ServletContextListener {
public InitListener() {
}
public void contextInitialized(ServletContextEvent sce) {
OgnlRuntime.setSecurityManager(null);
}
public void contextDestroyed(ServletContextEvent sce) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment