javaee / jersey

This is no longer the active Jersey repository. Please see the README.md
http://jersey.github.io
Other
2.86k stars 2.36k forks source link

JspTemplateProcessor should support *.jspx extension. #3401

Open glassfishrobot opened 8 years ago

glassfishrobot commented 8 years ago

.jspx is a common extension for XML compliant variation of the JSP files. The JspTemplateProcessor should support it together with .jsp.

Extremely simple fix is possible:

@Inject
public JspTemplateProcessor(final Configuration config, final ServletContext servletContext) {
    super(config, servletContext, "jsp", "jsp");
}

should be replaced with:

@Inject
public JspTemplateProcessor(final Configuration config, final ServletContext servletContext) {
    super(config, servletContext, "jsp", "jsp", "jspx");
}

Affected Versions

[2.23.1]

glassfishrobot commented 8 years ago

Reported by mobstef

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JERSEY-3129