摘要:1.前台action有user,password属性,并设置setter方法 用户名:${user} 密码:${password}2.前台action有类实例,如private Student student = new Student();姓名:性别:
阅读全文
摘要:org.hibernate.PropertyValueException: not-null property references a null or transient value: com.zyl.po.Card.cardnumat org.hibernate.engine.Nullability.checkNullability(Nullability.java:95)at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:313
阅读全文
摘要:报的错误: 1 严重: Exception starting filter struts2 2 Class: com.opensymphony.xwork2.spring.SpringObjectFactory 3 File: SpringObjectFactory.java 4 Method: getClassInstance 5 Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1 6 at org.apache.struts2.dispatcher.Dispatcher.init(...
阅读全文
摘要:Assigned(常用) Hilo Sequence Identity native UUid
阅读全文
摘要:使用jquery基础语法,选择器,实现隐藏html元素
阅读全文
摘要:1.发送请求时出现中文乱码Ajax不支持多种字符集,它默认的字符集是UTF-8,所以接收数据时,要将编码转换为UTF-8如将用户名的编码转换为UTF-8: String user = new String(request.getParameter("user").getBytes("ISO-8859-1"),"UTF-8");2.获取服务器的相应结果时出现中文乱码解决办法是保证从服务器端传递的数据采用UTF-8的编码格式
阅读全文
摘要:先建立连接,发送请求,根据下一个页面来判断是否已经存在
阅读全文
摘要:创建XMLHttpresponse对象,添加跨浏览器支持,发送请求,注意GET或POST,根据状态处理请求,。。。
阅读全文
摘要:在spring中,组成应用的主体以及由Spring IoC容器所管理的对象称之为bean。换言之,bean就是由Spring容器初始化、装配及被管理的对象。singleton作用域:当Spring中一个bean的作用域为singleton时,那么Spring IoC容器中只会存在一个共享的该bean实例,并且所有对该bean的引用,只要id与该bean 定期相匹配,则只会返回bean的单一实例。Spring容器的上下文中只有一个bean的实例对象,即容器的getBean()方法或将其注入到另一个bean中只能返回一个唯一的实例对象。在开发企业级的项目时经常需要singlet...
阅读全文
摘要:根据构造函数的不同,注入的代码略有不同,但都需要先装载配置文件,再获取bean
阅读全文
摘要:使用struts后,原本的页面布局会改变进而使用struts的结构,想要使用原本的页面布局,需在struts文件里输入
阅读全文