Skip to content

Commit

Permalink
Fixes #4323 - Set servlet-class to servlet-name if servlet-class is n…
Browse files Browse the repository at this point in the history
…ot specified (#4324)
  • Loading branch information
mnriem authored Dec 6, 2024
1 parent f5968a1 commit da6ff98
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ private void processServlets(WebApplication webApplication, WebXml webXml) {
if (!isEmpty(jspFile)) {
dynamic = webApplication.addJspFile(servlet.getServletName(), jspFile);
} else {
if (isEmpty(servlet.getClassName())) {
servlet.setClassName(servlet.getServletName());
LOGGER.log(DEBUG, "Setting servlet-class from servlet-name");
}
dynamic = webApplication.addServlet(servlet.getServletName(), servlet.getClassName());
}

Expand Down

0 comments on commit da6ff98

Please sign in to comment.