The error being different between browsers suggests this is a client problem not a server problem - in other words it is not that your servlet is not working, it is that your javascript is not...