Thanks Sagar For the Reply,
Obviously i tried with POST only and it was not working, with GET its working.
I was debugging the problem just now and found an interesting behavior.
I modified servlet code and added RequestDispatcher at the end and forwarded the request to a JSP as -
(i have excluded the irrelevant code here)
Now when i ran the prog in debug mode, i saw that after request is dispatched to jsp the doPost is called again, and this process repeats exactly three times, and the most interesting part is that in second time i can see the parameters being returned properly but in the first and third it is not.
Do you have any idea why this is so?
Appreciate your co-operation