users@glassfish.java.net

Re: http post not working

From: <glassfish_at_javadesktop.org>
Date: Sun, 13 Jun 2010 08:29:01 PDT

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