eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
690 stars 353 forks source link

JspTemplateProcessor should support *.jspx extension. #3401

Open jerseyrobot opened 8 years ago

jerseyrobot 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]

jerseyrobot commented 6 years ago
jerseyrobot commented 8 years ago

@glassfishrobot Commented Reported by mobstef

jerseyrobot commented 7 years ago

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