-
Notifications
You must be signed in to change notification settings - Fork 0
/
fbhandler.jsp
30 lines (29 loc) · 1.01 KB
/
fbhandler.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<%--
Document : fbhandler
Created on : Jul 3, 2017, 6:32:19 AM
Author : sreekanth kasani ')
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%@page import="java.sql.*" %>
<%
String user = request.getParameter("uid");
String feedback =request.getParameter("feedback");
PreparedStatement ps;
Connection conn;
ResultSet rs = null;
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/scms", "root", "root");
Statement st = conn.createStatement();
String query = "insert into feedback values('"+ user + "','" + feedback + "')";
st.executeUpdate(query);
%>
<jsp:forward page="AdminDashboard.jsp"></jsp:forward>
</body>
</html>