Thanks a lot for your help.... it worked.
I can print the value from the servlet
but there is another problem
I can't forward to another jsp.....
<code>
id = request.getParameter("userID");
System.out.println("Selected ID : "+id);
request.setAttribute("newID", id);
RequestDispatcher rd = request.getRequestDispatcher("/newpage.jsp");
rd.forward(request, response);
<code>
if I call this servlet from a button, it works.
but its not forwarding to another JSP from the ajax code.
is there any different way to do that????