<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="S.s"%> <%@ page import="Dao.dao"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> </p>信息已删除<p> <% dao d=new dao(); String zhuti4=(String)session.getAttribute("zhuti"); System.out.println(zhuti4); d.delete(zhuti4); %> <input style="margin-left:230px;margin-top:90px;width:150px;height:60px" type = "button" value = "点击这里返回" onclick = "window.location.href ='index.jsp'"> </body> </html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="S.s"%> <%@ page import="Dao.dao"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <% //以下语句用于接收客户端传来的参数 dao d=new dao(); s r=new s(); String yzhuti=request.getParameter("yzhuti"); String upmudi =request.getParameter("upmudi"); String upleixing=request.getParameter("upleixing"); String upshijian =request.getParameter("upshijian"); String updidian=request.getParameter("updidian"); String upduixiang=request.getParameter("upduixiang"); String upneirong=request.getParameter("upneirong"); String upricheng=request.getParameter("upricheng"); System.out.println("已经获取到信息了"); if(d.judge2(upmudi)==0||d.judge3(upneirong)==0) { response.getWriter().append("您输入的信息有误!!"); %><input type="button" onclick="window.location.href ='querenxiugaiq.jsp'" value="重新输入"/> <% } d.update(upmudi,upleixing,upshijian,updidian,upduixiang,upneirong,upricheng,yzhuti); %> <input style="margin-left:230px;margin-top:90px;width:100px;height:60px" type = "button" value = "点击这里返回" onclick = "window.location.href = 'index.jsp'"> </body> </html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>修改界面</title> </head> <body> <form action="querenxiugai.jsp" method="get"> <table align ="center" boder="1" width="500"> <tr> <td>活动主题(修改前):</td> <td><input type="text" name="yzhuti" /></td> </tr> <tr> <td>活动目的(修改后):</td> <td><input type="text" name="upmudi" /></td> </tr> <tr> <td>活动类型(修改后):</td> <td><input type ="text" name="upleixing"/></td> </tr> <tr> <td>活动时间(修改后):</td> <td><input type ="text" name="upshijian"/></td> </tr> <tr> <td>活动地点(修改后):</td> <td><input type ="text" name="updidian"/></td> </tr> <tr> <td>活动对象(修改后):</td> <td><input type ="text" name="upduixiang"/></td> </tr> <tr> <td>活动内容(修改后):</td> <td><input type ="text" name="upneirong"/></td> </tr> <tr> <td>活动日程(修改后):</td> <td><input type ="text" name="upricheng"/></td> </tr> <tr align "center"> <td colspan="2"><input type ="submit" value ="确认修改"/> </td> </tr> </table> </form> </body>
标签:Insert,JavaWeb,title,期中考试,here,修改,2021,活动 From: https://www.cnblogs.com/Arkiya/p/16871959.html