当前页面: 开发资料首页 → JSP 专题 → 我想回传type="checkbox"类型的已打勾的选项到javabean中,我该如何做,JSP方法我知道,但不用jsp
我想回传type="checkbox"类型的已打勾的选项到javabean中,我该如何做,JSP方法我知道,但不用jsp
摘要: 我想回传type="checkbox"类型的已打勾的选项到javabean中,我该如何做,JSP方法我知道,但不用jsp
<input name="products" type="checkbox" id="products" value="checkbox" >
==========yusuan_multi_update.jsp===============
<%@ page contentType="text/html; charset=GBK" %>
<% request.setCharacterEncoding("GBK");%>
<%@ page language="java"%>
<head>费用预算汇总表
<link> href="js/joekoe_skin_1.css" type=text/css rel=stylesheet>
</head>
<body>
<%=DDD.showcheckbox(getcheckbox)%>
</body>
package DBUpdate;
import DBUpdate.getcheckbox;
public class multinomial_update
{
public String showcheckbox(getcheckbox fs) throws Exception{
StringBuffer sBuf= new StringBuffer();
System.out.println(fs.getproducts());
sBuf.append("qqq");
return sBuf.toString();
}
}
Servlet
使用Servlet也可以,只要能将参数传递到java中
servlet好用
UP