protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { JobSeeker_Id = request.getParameter("ID"); dbconn = new DatabaseConnection(); conn = dbconn.setConnection(); stmt = conn.createStatement(); query = "select ID, fname, minit, lname, Date_of_birth, city, state, country, zipcode, Phone_cell, phone_Home, phone_work, my_resume, salary, Desired_position, willing_to_relocate from job_Seeker_Profile where ID=1005"; res = dbconn.getResult(query, conn); out.println(JobSeeker_Id); } catch (Exception e) { } finally { request.setAttribute("JobSeekerData", res); RequestDispatcher rd = request.getRequestDispatcher("/JSProfile.jsp"); rd.forward(request, response); out.close(); } }