Actually, i fixed the problem, and if u ever encouter this problem this is the reason:
In my doGet method I had like this:
public void doGet(HttpServletResponse res, HttpServletRequest req)...
when in fact the arguemtnts have to be in such that HttpServletRequest should come first and then HttpServlet res, so the correct signature is:
publiv void doGet(HttpServletRequest req, HttpServletRespons res).....
|