This commit is contained in:
2021-09-27 16:00:24 -07:00
parent c4097f6c9e
commit 96c28dd7b1
60 changed files with 2774 additions and 0 deletions

15
WebContent/createquiz.jsp Normal file
View File

@@ -0,0 +1,15 @@
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*"%>
<% try {
String subject= request.getParameter("subject");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle");
PreparedStatement ps=con.prepareStatement("insert into quizinfo(subject) values('"+subject+"') " );
int s= ps.executeUpdate();
}
catch(Exception e){e.printStackTrace();}
%>
<jsp:forward page="createquiz1.jsp"></jsp:forward>