- 博客(8)
- 收藏
- 关注
原创 ssh hibernate find 模糊查询 参数
public List find(String username) { @SuppressWarnings("unchecked") List user = getHibernateTemplate().find("from User where username LIKE ? ", "%"+username+"%"); return user; }模糊匹配的时候,需要
2014-09-25 19:28:03 5376
原创 ssh 中 jquery ajax 调用action返回的json数据并传递到页面
$(document).ready( function(){ $("#btnOK").click(function() { $.ajax({ type: "post", url: "/WebContent/testByAction.action"
2014-09-18 16:48:11 3626
转载 json的参考文档
http://blog.csdn.net/jajavaja/article/details/8494347 json action
2014-09-17 15:56:16 355
转载 org/apache/commons/lang/xwork/StringUtils无法找到
org/apache/commons/lang/xwork/StringUtils, 导入的xwork-core-2.3.4.1.jar这个jar包没有xwork, 后来有导入了xwork-core-2.2.1.1.jar这个包。问题解决了。
2014-09-16 19:22:53 512
原创 js 控制json在html中显示
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">json数据植入html的演示在 JavaScript 中创建 JSON 对象Name: Age: Address: Phone: var JSONObject=
2014-09-15 11:11:17 1504
原创 js获取html的对象样式
行内样式可以使用ele.style.xxx其他的样式,如class id 等定义的样式,需要使用ele.currentStyle.xxx
2014-09-09 10:48:53 399
转载 struts2 action向jsp传值
action向jsp页面传递值时,如果在jsp页面中是使用struts2标签取值的话,那么参数值会自动调用action中的参数getxxxxx()方法,将值自动取出后传入jsp页面中。如果在jsp页面中是使用非struts2标签取值的话,那么将不会自动调用action中的参数getxxxxxx()方法,必须将参数放入session或request或applicaton中,然后再在jsp页面中取值。
2014-09-03 22:41:11 1050
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人