Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2227

Message resources file in Struts Blank is misplaced

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.4
    • 1.2 Family
    • Example Applications
    • None
    • Operating System: other
      Platform: Other
    • 31399

    Description

      Struts-config.xml => <message-resources parameter="MessageResources" />
      This file is located in WEB-INF/classes/ and WEB-INF/classes/resources but not
      in WEB-INF/src/java

      However, the "old" resource file can be found at WEB-INF\src\java\resources

      Solution:
      Move MessageResources.properties to WEB-INF\src\java
      delete dir WEB-INF/src/java/resources
      delete dir WEB-INF/classes/resources

      or
      change <message-resources parameter="MessageResources" /> to <message-resources
      parameter="resources.MessageResources" />
      Move MessageResources.properties to WEB-INF/src/java/resources
      delete file WEB-INF/src/java/resources/application.properties
      delete file WEB-INF/classes/MessageResources.properties

      Attachments

        Activity

          People

            Unassigned Unassigned
            walle@post.utfors.se Johan Wallinder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: