In my application I am using Struts, I have introduced a filter in web.xml to check any malicious character available in request or not before it reaches to corresponding action or .do . If any malicious character available I need to redirect to error page and if not, I want to allow the request to corresponding action or .do. How can I forward the request to original request after filter check?
<filter>
<filter-name>MaliciousFilter</filter-name>
<filter-class>com.MaliciousFilter</filter-class>
</filter>