git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817434
13f79535-47bb-0310-9956-
ffa450edef68
// Description is ignored
// Display name is ignored
// Icons are ignored
- wrapper.setJspFile(servlet.getJspFile());
+ // Only set this if it is non-null else every servlet will get
+ // marked as the JSP servlet
+ String jspFile = servlet.getJspFile();
+ if (jspFile != null) {
+ wrapper.setJspFile(jspFile);
+ }
if (servlet.getLoadOnStartup() != null) {
wrapper.setLoadOnStartup(servlet.getLoadOnStartup().intValue());
}