I want to use the primefaces fileupload control in my jboss 7 web application. As I don’t use any web.xml (not required with Java EE 6), how can I specify the filter required to make the fileupload work properly? Should I create a web.xml for that or can I use annotations instead?
Thank you in advance!
Technically, you should indeed be creating a
web.xmlfile yourself. It’s not that hard, just create a file in/WEB-INF/web.xmlwith the following kickoff template:If you’ve really a hard head in and have some big aversion against “XML boilerplate”, then you could always homebrew a filter class which extends the PrimeFaces file upload filter with the desired
@WebFilterannotation.