Kenny, Your method attributes indicates the HTTP request is of type POST. You should write the above logic in doPost() but not in doGet(). The default http request is GET.
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, that will fit in a stocking