This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The container adds the xml declaration when you don't use jsp:root as the top element of your JSP document. You can control this behavior by using the jsputput action with the omit-xml-declaration property set to "yes" or "true"
So there are 2 solutions for your problem. 1. Use jsp:root 2. Use the jsputput as