MapBusesRoute/src/java/rideshare/UserDataServlet_A.java
/**
     * Processes requests for both HTTP <code>GET</code> and <code>POST</code>
     * methods.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
Processes requests for both HTTP GET and POST
methods.

@param request servlet request
@param response servlet response
@throws ServletException if a servlet-specific error occurs
@throws IOException if an I/O error occurs
Processes requests for both HTTP GET and POST methods . @param request servlet request @param response servlet response @throws ServletException if a servlet - specific error occurs @throws IOException if an I / O error occurs
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        try (PrintWriter out = response.getWriter()) {
            System.out.println("HERE!");
            /* TODO output your page here. You may use following sample code. */
        String username = request.getParameter("username");
        String pass1=request.getParameter("pass");
        PasswordEncrypt pe=new PasswordEncrypt();
        String pass=pe.conv(pass1);
        RideShareUserDBManager_A db = new RideShareUserDBManager_A();
        String userid=db.saveUserDetail(username,pass);
        out.write(userid);
        }  }
protected void processRequest ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { response . setContentType ( "text/html;charset=UTF-8" ) ; try ( PrintWriter out = response . getWriter ( ) ) { System . out . println ( "HERE!" ) ; /* TODO output your page here. You may use following sample code. */ String username = request . getParameter ( "username" ) ; String pass1 = request . getParameter ( "pass" ) ; PasswordEncrypt pe = new PasswordEncrypt ( ) ; String pass = pe . conv ( pass1 ) ; RideShareUserDBManager_A db = new RideShareUserDBManager_A ( ) ; String userid = db . saveUserDetail ( username , pass ) ; out . write ( userid ) ; } }
Processes requests for both HTTP <code>GET</code> and <code>POST</code>
 methods.
Processes requests for both HTTP <code > GET< / code > and <code > POST< / code > methods .