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

Allow codebehind to select the starting directory point

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.0.3
    • 2.0.3
    • Plugin - Mechanism
    • None

    Description

      Here's a simple patch to allow a new default "root" directory to be used when searching templates. I created it because I had a wish to keep jsp and css in independent directories.

      The configuration property is known as "struts.codebehind.pathPrefix" and requires a trailing slash
      It's set to default to "/" in both the java and in the struts-plugin.xml

      as an addendum, per a request, i've also added the default constant for "struts.codebehind.defaultPackage" to help the codebehind plugin remain selfcontained.

      Attachments

        1. codebehind.patch
          1 kB
          Aadi Deshpande

        Activity

          People

            mrdon Donald J. Brown
            cilquirm Aadi Deshpande
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: