摘要:项目中使用了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...
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:映射文件: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
阅读全文