Skip to content

Commit cb59974

Browse files
committed
WW-5190 Marks all Struts related filters with <async-supported/>
1 parent ecfdee1 commit cb59974

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

apps/showcase/src/main/webapp/WEB-INF/web.xml

+2
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@
4242
<filter>
4343
<filter-name>struts-execute</filter-name>
4444
<filter-class>org.apache.struts2.dispatcher.filter.StrutsExecuteFilter</filter-class>
45+
<async-supported>true</async-supported>
4546
</filter>
4647

4748
<filter>
4849
<filter-name>sitemesh</filter-name>
4950
<filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
51+
<async-supported>true</async-supported>
5052
</filter>
5153

5254
<filter-mapping>

apps/showcase/src/test/java/it/org/apache/struts2/showcase/DispatcherResultTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void testDispatchingToJSP() throws Exception {
4040
@Test
4141
public void testDispatchingToAction() throws Exception {
4242
try (final WebClient webClient = new WebClient()) {
43+
webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
4344
final HtmlPage page = webClient.getPage(ParameterUtils.getBaseUrl() + "/dispatcher/forward.action");
4445

4546
//DomElement div = page.getElementById("dispatcher-result");

0 commit comments

Comments
 (0)