Could not execute JDBC batch update
摘要:Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 原因与解决: 1.因为Hibernate Tools(或者Eclipse本身的Database Explorer)生成*.hbn.xml工具中包含有catalog="***"(*表...
阅读全文
C的错误分析
摘要:#include void main() { write:char a; printf("请输入一个小写字母:"); a=getchar(); if(a122){ printf("错误,您输入的不是小写字母!!!\n"); getchar();//(1) goto write; } else{ print...
阅读全文
用js获取select所选的值
摘要:投票项目 : 或: 姚明 买努 科比 text中就显示了select所选的内容
阅读全文
struts中,防止F5刷新,造成重复投票方法
摘要:现声明一个变量p:int p; 在 public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) 函数里加入一个if语句 if(p==1){ return mapping.findFo...
阅读全文