09 2010 档案

net.sf.json.JSONException: There is a cycle in the hierarchy!
摘要:项目中使用了AJAX技术,JAR包为:json-lib.jar, 在开发过程中遇到了一个JSON-LIB和Hibernate有关的问题:net.sf.json.JSONException: There is a cycle in the hierarchy! at net.sf.json.util.CycleDetectionStrategy$StrictCycleDetectionStrategy.handleRepeatedReferenceAsObject(CycleDetectionStrategy. 主外键关联,产生循环错误需设置过滤,去掉关联Java public Model... 阅读全文

posted @ 2010-09-20 16:30 archie2010 阅读(2634) 评论(0) 推荐(0) 编辑

网址正则验正
摘要:mce:script type="text/javascript"!-- function checkForm(){ if($("#fname").val().length0){ if($("#flink").val().length0){ var str = /^((https|http|ftp|rtsp|mms)?:\/\/)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+\.)*([0-9a-zA-Z][0-9A 阅读全文

posted @ 2010-09-15 18:39 archie2010 阅读(202) 评论(0) 推荐(0) 编辑

struts2 action中使用AJAX
摘要:mce:script type="text/javascript" src="scripts/jquery.js" mce_src="scripts/jquery.js"/mce:scriptmce:script type="text/javascript" src="scripts/json.js" mce_src="scripts/json.js"/mce:scriptscript type="text/javascript" $(document).ready(function(){ $("#father").change(function(){ var id=$(t 阅读全文

posted @ 2010-09-05 21:05 archie2010 阅读(777) 评论(0) 推荐(0) 编辑

hibernate多表查询
摘要:映射文件:ShoeModel.hbm.xml?xml version="1.0" encoding="UTF-8"?!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" hibernate-mapping package="com.kaisheng.pojo" class name="ShoeModel" table="t_shoemodel" id n 阅读全文

posted @ 2010-09-02 23:00 archie2010 阅读(2135) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示