<%=jspDepartment.getId()%>
<%=jspDepartment.getName() %> <>
<%}
用id查询不会写啊 求代码
select id,name from table where id=? 问号处接收你jsp页面输入框传过来的id值,譬如你id传过来的为tid 那么语句就遮掩写 "select id,name from 表名 where id="+tid 试试看吧!
解决方案2:select * from Table t where t.id = ?
Copyright © 2015 , 版权所有 码蚁之家 codes51.com 粤ICP备14062022号
声明:《 在网页中输入id点查询,显示id和name,求怎么做??》由码蚁之家搜集整理于网络,
如果侵害了您的合法权益,请您及时与我们,我们会在第一时间删除相关内容!联系邮箱:8963712#qq.com(#改为@)