Tag:Operating MySQL with JSP

  • JSP operation MySQL query / insert / delete function example

    Time:2021-1-30

    Paste the code directly:First, index_ test.jsp The code of the page is as follows: Copy codeThe code is as follows: <%@ page language=”java” pageEncoding=”utf-8″%> <%@ page contentType=”text/html;charset=utf-8″%>&nbsp; <%&nbsp; &nbsp; &nbsp;request.setCharacterEncoding(“UTF-8”);&nbsp; &nbsp; &nbsp;response.setCharacterEncoding(“UTF-8”);&nbsp; &nbsp; &nbsp;response.setContentType(“text/html;charset=utf-8”);&nbsp; %> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> < title > personnel operation<META http-equiv=Content-Type content=”text/html; charset=utf-8″> <style> […]