change ‘head’ in registerservlet.java to null
web.xml
register