private void convertJsp(ServletDef servletDef, ServletDef jspServletDef) {
servletDef.setServletClass(org.apache.catalina.core.Constants.JSP_SERVLET_CLASS);
String jspFile = servletDef.getJspFile();
- servletDef.getParameterMap().put("jspFile", jspFile);
if ((jspFile != null) && !jspFile.startsWith("/")) {
if (context.isServlet22()) {
if(log.isDebugEnabled())
(sm.getString("contextConfig.jspFile.error", jspFile));
}
}
+ servletDef.getParameterMap().put("jspFile", jspFile);
servletDef.setJspFile(null);
for (Map.Entry<String, String> initParam: jspServletDef.getParameterMap().entrySet()) {
servletDef.addInitParameter(initParam.getKey(), initParam.getValue());
Ensure a web application is taken out of service if the web.xml file is
not valid. (kkolinko/markt)
</fix>
+ <fix>
+ Ensure Servlet 2.2 jspFile elements are correctly converted to use a
+ leading '/' if missing. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">