I have struts2 web application. Right now I need embed with help of iframe some functionality from stand-alone servlet.
But according to following rule, servlet is never get calling.
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Unfortunately I cannot change it to /prefix/*
So does anybody know how to resolve it?
Filters are called in the order as they’re definied in
web.xml. I’d create a filter with a more specificurl-patternin the front of the Struts2 filter and then let this filter forward the request to the servlet in question instead of continuing the filter chain. E.g.Map this on the same
url-patternas the servlet, i.e./servletURLand put it before the Struts2 filter in theweb.xml.