
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

<%@ page import="java.sql.*" %> <% int a1=Integer.parseInt(request.getParameter("no")); out.println(a1); Connection con=DriverManager.getConnection("jdbc:ucanaccess://C:/Users/ELCOT/ Documents/MSACCESS/emp.accdb"); Statement st=con.createStatement(); ResultSet rs = st.executeQuery("select * from emp where empno="+a1); int n1; String name, add; while(rs.next()) { n1=rs.getInt(1); name= rs.getString(2); add=rs.getString(3); out.println(n1+" "+name+" "+add); } %>