Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3349

Extension .jspf not recognized as JSP result-type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.1.8.1, 2.2.1
    • 2.3.1
    • Plugin - Convention
    • None
    • Any

    Description

      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"));
      ....

      Attachments

        Activity

          People

            jogep Johannes Geppert
            cbo Christian Bockermann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: