thanks Hassan for your reply.
I just chnaged my servlet code as,
[code]
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
System.out.println("~~~~~~~~~~~~~~~~~~~~" + request.getParameter("test"));
[/code]
now the result is,
for get --> ~~~~~~~~~~~~~~~~~~~~This is the data
for post --> ~~~~~~~~~~~~~~~~~~~~null
[Message sent by forum member 'dushank']
http://forums.java.net/jive/thread.jspa?messageID=474110