Jsp页面肯能出现的一种问题

<textarea name="content">
这里必须有个属性,form表单才能接受到的。这个问题虽然简单但是提供了一种编程思想<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>ViewByAcid.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>

<logic:iterate id="list" name="list">
<form
action="update.do?acticleid=<bean:write name="list" property="acticleid" />"
method="post">
<table border="1" bordercolor="red">
<tr>
<td>
创建时间
<br>
</td>
</tr>
<tr>
<td>
<input type="text" name="adddate"
value="<bean:write name="list" property="adddate" />">
</td>
</tr>
<tr>
<td>
文章标题
</td>
</tr>
<tr>
<td>
<input type="text" name="title"
value="<bean:write name="list" property="title" />">
</td>
</tr>
<tr>
<td>
文章内容
</td>
</tr>
<tr>
<td>
<textarea rows="20" cols="70" name="content">
<bean:write name="list" property="content" />
</textarea>
</td>
</tr>
<tr>
<td>
修改时间
</td>
</tr>
<tr>
<td>
<input type="text" name="modifydate"
value="<bean:write name="list" property="modifydate" />">
</td>
</tr>
<tr>
<td>
所属栏目
</td>
</tr>
<tr>
<td>
<input type="text" name="typeid"
value="<bean:write name="list" property="typeid" />">
</td>
</tr>
</table>

<input type="submit" name="sub" value="提交">
</form>
</logic:iterate>
</body>
</html:html>
</textarea>

你可能感兴趣的:(jsp)