Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add warning about freemarker groupId dependencies

...

Maven users can update their project's pom.xml to reference the new core and plugin versions.
Ensure maven is configured to use the appropriate repository. Non-GA releases are usually available in a staging repositoryEnsure no dependencies in the freemarker groupId are used as the latest version used by Struts is now under the org.freeemarker groupId and will cause classpath conflicts.

If you need releases not considered General Availability you can use a staging repository where they are usually available:

Code Block
<repositories>
    <repository>
      <id>struts2.1.2-staging</id>
      <name>Struts 2.1.2 staging repository</name>
      <layout>default</layout>
      <url>http://people.apache.org/builds/struts/2.1.2/m2-staging-repository/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>

...

  1. reference the new Dojo tag library
  2. update the head tag
  3. update all ajax themed tags
  4. check inline scripts
  5. check inline widgets
    Info

    If this is a major undertaking for your application, it's recommended to modify, test and validate each page one at a time.

Reference the new Dojo Tag Library

...

Code Block
<s:submit value="Submit" id="submit3" />
<sx:bind targets="div1" highlightColor="#ffffcc" highlightDuration="500" sources="submit3" 
events="onclick" href="%{#fragment3Url}" errorNotifyTopics="/error" executeScripts="true" 
separateScripts="true"/>

Check inline widgets

...

Note

Forgetting to convert attributes to OGNL expressions will produce exceptions similar to the one below:

Code Block
org.apache.jasper.JasperException: /example.jsp(8,6) According to TLD or attribute directive in tag 
file, attribute value does not accept any expression

...

Code Block
none
none
2008-04-19 14:32:30,106 WARN  [http-8443-Processor23] [TextProviderHelper] The first TextProvider in the ValueStack 
(package.Action) could not locate the message resource with key 'companyDetails.addressId'
2008-04-19 14:32:30,107 WARN  [http-8443-Processor23] [TextProviderHelper] The default value expression 
'companyDetails.addressId' evaluated to '10'

...