The fact that this class has a constructor is suspicious - servlets should not have an explicit constructor, nor should any of your code be calling it. [ April 29, 2008: Message edited by: Ulf Dittmer ]
Pls excuse me for a long post. As becuase there was a bit of confusion in the forum because I'd posted incorrect code earlier, I'm posting both the code - which does not work(i.e., code using POST method) and which works (i.e., code using GET method)
CODE THAT WORKS
[ UD: Removed the HTML from both examples, because -being unformatted in a single line- it screwed up the layout. Please be careful to post formatted code only, and check the layout after posting. ] [ April 29, 2008: Message edited by: Ulf Dittmer ]
Well I am not so much experienced as Ulf and Ben, so with due respect to their posts I would just like to suggest that check if the form that the servlet gets data from, uses POST method to submit data.