Obtaining servlet GET parameters

From MyWiki
Revision as of 19:26, 3 November 2014 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 public void doPost(HttpServletRequest request, HttpServletResponse response)
                                       throws ServletException, IOException
 
HttpSession sess = request.getSession();  Oops this is for getting values from the session !
 
// and then
 
 String  name = request.getParameter("username" );