Topic: 数据如何与jsp表单绑定

  Print this page

1.数据如何与jsp表单绑定 Copy to clipboard
Posted by: zhoujunsheng168
Posted on: 2005-12-14 17:20

我在做一个程序时,从数据库从取出一笔记录,根据这笔记录,比如
rs.getString(“isNew”)=”Y”的话,
在jsp中的checkbox则勾上,否则不勾.这个怎么实现?

2.Re:数据如何与jsp表单绑定 [Re: zhoujunsheng168] Copy to clipboard
Posted by: sunshineblue
Posted on: 2005-12-30 16:10

先用javabean数据库中取出数据
然后判断
用jsp标签

3.Re:数据如何与jsp表单绑定 [Re: zhoujunsheng168] Copy to clipboard
Posted by: mikecaolei
Posted on: 2006-01-02 13:56

<%String rv=rs.getString(“isNew”)
if(rv.equals("Y")){%>checked<%}%>


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923