摘要: 1、总中的配置文件 2、映射文件,ibatis 可以将sql语句写在配置文件中insert into Student(name,major)values (#name#,#major#)delete from Student where id=#id#3、实体类public class Student {private int id;private String name;//名字private String major;//专业public int getId() {return id;}public void setId(int id) {this.id = id;}public Str. 阅读全文
posted @ 2014-03-07 21:29 Aways.Online 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1、要实现与jquery整合当然要引入jquery库2、ajax 请求var url = '*****.action';//请求的urlvar params ={ passwordOld:document.getElementById('passwordOld').value };//请求的参数jQuery.post(url, params, callbackFun);//向服务器提交请求 callbackFun 是回调函数3、struts2 的actionpublic String changePassword() throws Exception {Stri 阅读全文
posted @ 2014-03-07 21:08 Aways.Online 阅读(171) 评论(0) 推荐(0) 编辑