上一页 1 ··· 6 7 8 9 10

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 阅读(2632) 评论(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 阅读(201) 评论(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 阅读(776) 评论(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 阅读(2132) 评论(0) 推荐(0) 编辑

hibernate经典配置与测试

摘要: hibernate.cfg.xml<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> & 阅读全文
posted @ 2010-08-17 21:59 archie2010 阅读(660) 评论(0) 推荐(0) 编辑

Struts2之记录排序

摘要: 页面部分见上一篇文章:jquerry之隔行跳色TransAction.java部分代码:} @Override public String list() throws Exception { System.out.println("list........"); User u=(User) getFromSession("user_session"); int uid=u.getId(); System.out.println(uid); System.out.println("oid:"+oid); //System.out.println(trans.getUid()+"=== 阅读全文
posted @ 2010-08-16 21:08 archie2010 阅读(398) 评论(0) 推荐(0) 编辑

jquerry之隔行跳色

摘要: 效果如下图所示:<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib prefix="s" uri="/struts-tags"%><!DOCTYPE HTML PUBLIC " 阅读全文
posted @ 2010-08-16 20:57 archie2010 阅读(277) 评论(0) 推荐(0) 编辑

Struts2之Ognl用法

摘要: OgnlAction.javapackage com.kaishengit.web;import java.util.HashMap;import java.util.List;import java.util.Map;import com.kaishengit.dao.UserDao;import com.kaishengit.vo.User;import com.opensymphony.xwork2.ActionContext;import com.opensymphony.xwork2.ActionSupport;public class OgnlAction extends Acti 阅读全文
posted @ 2010-08-12 22:42 archie2010 阅读(622) 评论(0) 推荐(0) 编辑

java模拟系统进程算法的小程序

摘要: package PID;public class ProBean {private String PID;private int time;private int priority;public String getPID() {return PID;}public void setPID(String pid) {PID = pid;}public int getTime() {return time;}public void setTime(int time) {this.time = time;}public int getPriority() {return priority;}pub 阅读全文
posted @ 2010-06-23 19:24 archie2010 阅读(273) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10