Skip to content

Commit

Permalink
WW-5190 Marks all Struts related filters with <async-supported/>
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Jun 27, 2022
1 parent ecfdee1 commit cb59974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/showcase/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@
<filter>
<filter-name>struts-execute</filter-name>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsExecuteFilter</filter-class>
<async-supported>true</async-supported>
</filter>

<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
<async-supported>true</async-supported>
</filter>

<filter-mapping>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void testDispatchingToJSP() throws Exception {
@Test
public void testDispatchingToAction() throws Exception {
try (final WebClient webClient = new WebClient()) {
webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
final HtmlPage page = webClient.getPage(ParameterUtils.getBaseUrl() + "/dispatcher/forward.action");

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

0 comments on commit cb59974

Please sign in to comment.