You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider became abstract,
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; see list of removed constants and Struts substitutes
New constants struts.i18n.search.defaultbundles.first and struts.ui.escapeHtmlBody
Tag escape behaviour
After migrating to the latest Freemarker (which enables auto-escaping by default) you should stop using ?html in your custom tags and freemarker based pages.
Also when embedding a tag in <s:a>, <s:submit> and <s:component> tags like in the example below:
The <s:date/> tag has been adjusted to support a new Java 8 Date/Time API
Deprecated interfaces
These interfaces have a new proper versions in another package, please start using the new versions as the deprecated interfaces will be removed with the next major release
Javatemplate Checkbox tag
can introduce a NullPointerException when you will use Boolean or String to hold an unchecked value as submittedUnchecked is set to false by default, which means the unchecked value won't be sent and stored in the action
Static methods access
It won't be possible to access static methods using OGNL expression, eg. @com.app.Util@makeCode() won't work anymore. If you are still using this approach you must wrap access to static methods with action instance methods or use static field access instead.
What problem are you trying to solve?
Recipe to migrate to Struts 6.x
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
became abstract,use
org.apache.struts2.config.StrutsXmlConfigurationProvider
insteadcom.opensymphony.xwork2.conversion.TypeConversionException
was replaced byorg.apache.struts2.conversion.TypeConversionException
com.opensymphony.xwork2.XWorkException
was replaced byorg.apache.struts2.StrutsException
struts.i18n.search.defaultbundles.first
andstruts.ui.escapeHtmlBody
Any additional context
The text was updated successfully, but these errors were encountered: