I read too fast and whether it's necesary to put thecontenttype in the web.xml. I think it's not necessary, you just have to setthis value in the servlet.