Last active
December 15, 2015 21:18
-
-
Save jamesnguyen101/5324308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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