<%@include file="Header.jsp"%> <%@include file="DBconnection.jsp"%> <%@page import="java.sql.*"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <% String mobile2=(String)session.getAttribute("mobile"); if(mobile2==null) { response.sendRedirect("UserLogin.jsp") ; } else { %> <% request.setCharacterEncoding("UTF-8"); String profileid=request.getParameter("id"); PreparedStatement pst=null; ResultSet rs=null; String name=""; String subcaste=""; String height=""; String education=""; String location=""; String occupation=""; String religion=""; String imgname=""; String age=""; try { pst=con.prepareStatement("select name,religion,caste,height,education,nativeplace,imgname,age from profile where profileid=?"); pst.setString(1,profileid); rs=pst.executeQuery(); while(rs.next()) { name=rs.getString(1); religion=rs.getString(2); subcaste=rs.getString(3); height=rs.getString(4); education=rs.getString(5); location=rs.getString(6); imgname=rs.getString(7); age=rs.getString(8); } }catch(Exception e) { out.println(e); } %>

Search Result

<%@include file="Footer.jsp"%> <%}%>