THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> |
There were other package changes, please read Version Notes 2.5 for more details.
DTD
Struts DTD was updated to 2.5 version.
In struts.xml replace 2.3 DTD version:
...
Code Block | ||
---|---|---|
| ||
<s:set var="str1" value="'string1 value'" />
<s:set var="str2" value="'string2 value'" /> |
Also escape
attribute was renamed to escapeHtml
attribute.
From:
Code Block | ||||
---|---|---|---|---|
| ||||
<s:property escape="true" var="someProperty"/> |
...
to:
Code Block | ||||
---|---|---|---|---|
| ||||
<s:property escapeHtml="true" var="someProperty"/> |
Div tag
The <s:div>
tag was dropped.
Replace <s:div>
with plain HTML <div>
tag.
...