今天学习了“改”内容:
update.1.jsp
<%@ page import="dailysummer.Main" %>
<%@ 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>
<title>每日总结</title>
</head>
<div style = "text-align:center"><h2>每日总结</h2></div>
<br>
<%
String time = request.getParameter("time");
String title1= request.getParameter("title1");
String content1= request.getParameter("content1");
String keyword1= request.getParameter("keyword1");
Main main = new Main();
main.update(time, title1,content1,keyword1);
%>
</html>
update.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>
<title>更改总结</title>
</head>
<form action = "update.1.jsp" method = "get">
<div style = "text-align:center"><h2>每日总结</h2></div>
<br>
<table border = "0" style = "border-collapse:collapse" align="center">
<tr><td><font color="red">*</font>
要更改的日期为<input type = "text" name = "time" size = "20" maxlength = "10">
</td></tr>
<tr><td><font color="red">*</font>
关键字改为<input type = "text" name = "keyword1" size = "20" maxlength = "10">
</td></tr>
<tr><td><font color="red">*</font>
内容改为为<input type = "text" name = "content1" size = "20" maxlength = "10">
</td></tr>
<tr><td><font color="red">*</font>
标题改为<input type = "text" name = "title1" size = "20" maxlength = "10">
</td></tr>
</table>
<div style = "text-align:center">
<br><input type = "submit" value = "提交">
</div>
</form>
</html>