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

Unable override *.js files for struts module.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • Plugin - Dojo Tags
    • None
    • struts2-core-2.1.0.jar struts2-dojo-plugin-2.1.0.jar

    Description

      I need to 'override' some *.js file for bug fixing/adding new features.
      I managed successfully 'override' template *.ftl files by putting them into %WEB_MODULE_ROOT%/template dirrectory. But this does not work for *.js files.
      The paths I've tried:
      %WEB_MODULE_ROOT%\org\apache\struts2\static\utils.js
      %WEB_MODULE_ROOT%\common\struts\utils.js
      %WEB_MODULE_ROOT%\struts\utils.js
      But it does not work i.e. browser still loads 'native' *.js file from struts2-core-2.1.0.jar\org\apache\struts2\static\utils.js

      Is there any solution to override *.js files?

      Attachments

        1. struts_dojo.js.uncompressed.patch
          0.6 kB
          Vladimir Limansky
        2. utils.patch
          2 kB
          Vladimir Limansky

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vlimansky Vladimir Limansky
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: