Hello Jonathan.

     As the other replies have pointed out, your code is using/extending 
"import java.nio.file.DirectoryStream.Filter;".  That is an import for a file 
directory filter, and not a servlet filter.

     You will want to replace the old import statement with "import 
javax.servlet.Filter;" instead.

     Some general background on Java Servlets can be found at 
https://docs.oracle.com/javaee/7/tutorial/servlets006.htm#BNAGB or
https://www.oracle.com/java/technologies/filters.html , which might be of 
interest.

     If you type "java tutorial servlet filter" into your favourite search 
engine you should find some results that can help you out with writing a 
servlet filter.

     Hope that helps.

Regards,

     James.

On 2020/05/05 16:13:47, M Huzaifah <mhuzaifah.i...@gmail.com> wrote: 
> Eyou should use interface Filter in servlet package. Not from nio package
> 
> On Tue, May 5, 2020, 22:40 Dave Newton <davelnew...@gmail.com> wrote:
> 
> > `import java.nio.file.DirectoryStream.Filter` is not a servlet filter.
> >
> > Dave
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to