下面是实现的实例:
《Struts单选框的实现》
《Struts复选框的实现》
《Struts下拉框的实现》http://dev.csdn.net/user/kui
http://javaweb.51.net/
http://javawebStudio.51.net/下载《Struts开发实例》地址:
http://www.infoxa.com/asp/book/xxnr.asp?id=1333
《Struts单选框的实现》
《Struts复选框的实现》
《Struts下拉框的实现》http://dev.csdn.net/user/kui
http://javaweb.51.net/
http://javawebStudio.51.net/下载《Struts开发实例》地址:
http://www.infoxa.com/asp/book/xxnr.asp?id=1333
解决方案 »
- Socket 心跳包 线程设计
- jsp中选择一个下拉框中值就可以触发一个action?
- 如何在进入页面时自动选中并加亮表格的每一行
- 关于getParameter得到空值的问题。
- 哪位高手给讲讲response.encodeURL("j_security_check")
- Java与Delphi用Socket通信的问题。
- JSP问题,求教
- japsmartupload中系统自动给上传的文件命名的属性????
- 如何尽快的学好jsp???
- 我想用JSP作一个后台管理的程序,主要功能是实现数据库的增删改(还有用户的权限)
- 【大侠们帮帮忙啊!】关于session的保存的,以及asp合jsp的整合!!!!!!!!!!【在线揭帖!】
- 字段的类型问题
<html:multibox name="all" property="checkbox">
<bean:write name="all" property="userID"/>
</html:multibox>
出错了!You must specify the value attribute or nested tag content
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="userBean" scope="page" class="zhangbo.UserBean"/>
<c:set var="user" value="${userBean.user}"/>
<html:html locale="true">
<head>
<title>无标题文档</title>
<html:base/>
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
<!--
.style1 {font-size: 12px}
body,td,th {
font-size: 12px;
}
-->
</style></head>
<body>
<html:form action="deleteUserAction.do" method="get">
<div align="center">
<table width="681" height="69" border="1" bgcolor="#dff1f9">
<tr>
<td height="28"><div align="center"><bean:message key="struts.addjsp.userId"/></div></td>
<td width="101"><div align="center"><bean:message key="struts.addjsp.userName"/></div></td>
<td width="91"><div align="center"><bean:message key="struts.addjsp.age"/></div></td>
<td width="91"><div align="center"><bean:message key="struts.addjsp.sex"/></div></td>
<td width="158"><div align="center"><bean:message key="struts.addjsp.email"/></div></td>
<td width="118"><div align="center"><bean:message key="struts.addjsp.qq"/></div></td>
<td width="118"><div align="center">删除用户</div></td>
</tr>
<logic:iterate id="all" name="user">
<tr>
<td width="82" height="28"><div align="center"><bean:write name="all" property="userId"/></div></td>
<td><div align="center"><bean:write name="all" property="userName"/></div></td>
<td><div align="center"><bean:write name="all" property="age"/></div></td>
<td><div align="center"><bean:write name="all" property="sex"/></div></td>
<td><div align="center"><bean:write name="all" property="email"/></div></td>
<td><div align="center"><bean:write name="all" property="qq"/></div></td>
<td width="118">
<div align="center">
<html:multibox property="deleteId" >
</html:multibox>
</div></td>
</tr>
</logic:iterate>
</table>
<html:submit property="action">
<bean:message key="struts.addjsp.button.add"/>
</html:submit>
<html:reset property="action" value="重置">
</html:reset>
</div>
</html:form>
</body>
</html:html>有啊值是丛这个all集合读出的
<html:multibox name="all" property="checkbox" value="${all.userId}">
</html:multibox>
我也不知道?
<html:multibox name="all" property="checkbox">
<bean:write name="all" property="userId"/>
</html:multibox>
这样就抱错;You must specify the value attribute or nested tag content
这样就满好?
<html:multibox name="all" property="checkbox" value="${all.userId}">
</html:multibox>