You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Dependencies

Update Struts dependencies to 6.x.x.

Remove the following plugin dependencies because they were dropped and aren't supported anymore:

  • sitegraph plugin

Support for Velocity was moved into dedicated plugins, also Velocity based tags were moved into the new plugin, see WW-5049 - Getting issue details... STATUS for more details.

Class changes

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider became abstract, please use org.apache.struts2.config.StrutsXmlConfigurationProvider instead.

com.opensymphony.xwork2.conversion.TypeConversionException was replaced by org.apache.struts2.conversion.TypeConversionException.

com.opensymphony.xwork2.XWorkException was replaced by org.apache.struts2.StrutsException.

XWork constants

All Xwork constans had been already deprecated, with this version all of them have been removed and Struts constants have been used instead. See tickets WW-4792 - Getting issue details... STATUS and WW-5000 - Getting issue details... STATUS with the linked PRs for the exact changes. Below is a list of removed constants and Struts substitute:

Old constantNew constant
collectionConverter struts.converter.collection
dateConverterstruts.converter.date
numberConverterstruts.converter.number
stringConverterstruts.converter.string
arrayConverterstruts.converter.array
devModestruts.devMode
logMissingPropertiesstruts.ognl.logMissingProperties
enableOGNLExpressionCachestruts.ognl.enableExpressionCache
enableOGNLEvalExpressionstruts.ognl.enableEvalExpression
reloadXmlConfigurationstruts.configuration.xml.reload
allowStaticMethodAccessstruts.ognl.allowStaticMethodAccess
xwork.loggerFactory<not used any more>
ognlExcludedClassesstruts.excludedClasses
ognlExcludedPackageNamePatternsstruts.excludedPackageNamePatterns
ognlExcludedPackageNamesstruts.excludedPackageNames
additionalExcludedPatternsstruts.additional.excludedPatterns
additionalAcceptedPatternsstruts.additional.acceptedPatterns
overrideExcludedPatternsstruts.override.excludedPatterns
overrideAcceptedPatternsstruts.override.acceptedPatterns
struts.xwork.chaining.copyErrorsstruts.chaining.copyErrors
struts.xwork.chaining.copyFieldErrorsstruts.chaining.copyFieldErrors
struts.xwork.chaining.copyMessagesstruts.chaining.copyMessages
xwork.autoGrowCollectionLimitstruts.ognl.autoGrowthCollectionLimit
objectFactory.classloaderstruts.objectFactory.classloader
logMissingPropertiesstruts.ognl.logMissingProperties

New constants

Constant nameDescription
struts.i18n.search.defaultbundles.firstAllows search in default bundles first, read more in the docs

Tag escape behaviour

After migrating to the latest Freemarker (which enables auto-escaping by default) you should top using ?html in your custom tags and freemarker based pages. Also when embedding one tag in another like in the example below:

<s:a href="%{...}">
  <img src="<s:url value='/images/icon_waste_sml.png'/>"/>
</s:a>

The inner tag will be automatically escaped, to avoid such behaviour set "escapeHtmlBody" attribute to "false" as below:

<s:a href="%{...}" escapeHtmlBody="false">
  <img src="<s:url value='/images/icon_waste_sml.png'/>"/>
</s:a>

It's related to WW-5022 - Getting issue details... STATUS and WW-4972 - Getting issue details... STATUS .

Temp/Work directory of ApplicationServer/ServletContainer

Users reported it was necessary for them to remove temp/work directory of their ApplicationServer/ServletContainer. Likely to force server to recompile JSPs.


  • No labels