<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="S.s"%> <%@ page import="Dao.dao"%> <%@ page import="java.util.ArrayList"%> <!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> <% ArrayList<s>a1=new ArrayList<s>(); dao d=new dao(); String xzhuti=request.getParameter("zhuti"); session.setAttribute("zhuti", xzhuti); a1=d.searchbyname(xzhuti); %> <table border="1" width="100%"> <tr> <th>活动主题</th> <th>活动目的</th> <th>活动类型</th> <th>活动时间</th> <th>活动地点</th> <th>活动对象</th> <th>活动安排</th> <th>活动日程安排</th> </tr> <% for(int i=0;i<a1.size();i++) { s in=a1.get(i); String zhuti=in.Getzhuti(); String mudi=in.Getmudi(); String leixing=in.Getleixing(); String shijian=in.Getshijian(); String didian=in.Getdidian(); String duixiang=in.Getduixiang(); String neirong=in.Getneirong(); String richeng=in.Getricheng(); %> <tr> <td><%=(zhuti) %></td> <td><%=(mudi) %></td> <td><%=(leixing) %></td> <td><%=(shijian) %></td> <td><%=(didian) %></td> <td><%=(duixiang) %></td> <td><%=(neirong) %></td> <td><%=(richeng) %></td> </tr> <% } %> </table> <input style="margin-left:230px;margin-top:90px;width:150px;height:60px" type = "button" value = "取消更新点击这里" onclick = "window.location.href ='index.jsp'"> <input style="margin-left:230px;margin-top:90px;width:150px;height:60px" type = "button" value = "确认更新请点击这里" onclick = "window.location.href ='querenxiugaiq.jsp'">
<%@ 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="update.jsp" method="get"> <table align ="center" boder="1" width="500"> <tr> <td>活动主题:</td> <td><input type="text" name="zhuti" /></td> </tr> <tr> <tr align "center"> <td colspan="2"><input type ="submit" value ="更新"/> </td> </tr> </table> </form> </body>
标签:xzhuti,JavaWeb,期中考试,dao,zhuti,2021,new,活动 From: https://www.cnblogs.com/Arkiya/p/16871963.html