Change org.eclipse.jetty.servlet.jspPackagePrefix to a context init-param

This commit is contained in:
Jan Bartel 2014-05-07 15:28:49 +02:00
parent eecd986058
commit 8fb9baace1
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
private transient boolean _enabled = true; private transient boolean _enabled = true;
private transient UnavailableException _unavailableEx; private transient UnavailableException _unavailableEx;
public static final String JSP_GENERATED_PACKAGE_NAME = "org.eclipse.jetty.jspPackagePrefix"; public static final String JSP_GENERATED_PACKAGE_NAME = "org.eclipse.jetty.servlet.jspPackagePrefix";
public static final Map<String,String> NO_MAPPED_ROLES = Collections.emptyMap(); public static final Map<String,String> NO_MAPPED_ROLES = Collections.emptyMap();
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
@ -853,7 +853,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
private String getJspPackagePrefix () private String getJspPackagePrefix ()
{ {
String jspPackageName = (String)getServletHandler().getServletContext().getAttribute(JSP_GENERATED_PACKAGE_NAME ); String jspPackageName = (String)getServletHandler().getServletContext().getInitParameter(JSP_GENERATED_PACKAGE_NAME );
if (jspPackageName == null) if (jspPackageName == null)
jspPackageName = "org.apache.jsp"; jspPackageName = "org.apache.jsp";