Extension .jspf not recognized as JSP result-type
-------------------------------------------------
Key: WW-3349
URL: https://issues.apache.org/struts/browse/WW-3349
Project: Struts 2
Issue Type: Bug
Components: Plugin - Convention
Affects Versions: 2.1.8.1, 2.1.9
Environment: Any
Reporter: Christian Bockermann
Priority: Trivial
I make use of jsp templates and small fragments, ending with .jspf
These should be considered as result-type "dispatcher" as well (it seems that
currently only jsp, jspx are considered to dispatcher-results)
According to
http://java.sun.com/developer/technicalArticles/javaserverpages/code_convention/
the ending .jspf might be an option for jsp-fragments. Should this be added to
ConventionsServiceImpl ?
>From ConventionsServiceImpl:
/**
* {...@inheritdoc}
*/
public Map<String, ResultTypeConfig>
getResultTypesByExtension(PackageConfig packageConfig) {
Map<String, ResultTypeConfig> results =
packageConfig.getAllResultTypeConfigs();
Map<String, ResultTypeConfig> resultsByExtension = new HashMap<String,
ResultTypeConfig>();
resultsByExtension.put("jsp", results.get("dispatcher"));
// Added to make jspf a valid JSP-extension:
resultsByExtension.put("jspf", results.get("dispatcher"));
....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.