2013年5月16日
摘要: scope属性用于指定JavaBean实例对象所存储的域范围,其取值只能是page、request、session和application四个值中的一个,其默认值是page。我可以测试下面代码:date.jsp---------------------------------------------------------<jsp:useBean id="currentDate" class="java.util.Date" scope="request" /><%=currentDate.toString() %& 阅读全文
posted @ 2013-05-16 12:30 小影~~~ 阅读(419) 评论(0) 推荐(0) 编辑
摘要: ResultSet rs=st.executeQuery("select ID from news where title="+title+);显示错误:[Microsoft][ODBC Microsoft Access 驱动程序] 参数不足,期待是 1原因:参数没传递过去 在数据库中 变量title 要用单引号修改如下: ResultSet rs=st.executeQuery("select ID from news where title='"+title+"'");今天有发现了同一个错误:就再写写吧:st.ex 阅读全文
posted @ 2013-05-16 09:29 小影~~~ 阅读(1262) 评论(0) 推荐(0) 编辑