摘要: jsp页面:$(document).ready(function() { setInterval(function myTimer() { //alert('a'); getViews(); },1000); }); //播放 function getViews(){ $.ajax({ 'url':"${pageContext.request.contextPath}/video/getVideos.action?r="+Math.random()+"&op... 阅读全文
posted @ 2012-10-12 13:21 人生如若初见 阅读(668) 评论(0) 推荐(0) 编辑
摘要: package com.supcon.hospital.jianche.service;import java.util.Hashtable;/*** @date 2012-10-11*/public class VideoHashTable {private static VideoHashTable receHashTable;private Hashtable<Long, Long> rht = new Hashtable<Long, Long>();private boolean updateFlag = true;private VideoHashTable( 阅读全文
posted @ 2012-10-12 13:07 人生如若初见 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 创建Dom4j的Document用于解析xmlprotected Element createDocument(String xml) {try {Document document = new SAXReader().read(Thread.currentThread().getContextClassLoader().getResourceAsStream(xml));// Document document = DocumentHelper.parseText(xml);Element root = document.getRootElement();return root;} catc 阅读全文
posted @ 2012-10-12 13:04 人生如若初见 阅读(204) 评论(0) 推荐(0) 编辑
摘要: package com.supcon.honcomb.basearchives.entity;import java.awt.AlphaComposite;import java.awt.Color;import java.awt.Composite;import java.awt.Graphics2D;import java.awt.Paint;import java.awt.Polygon;import java.awt.Rectangle;import java.awt.Shape;import java.awt.Stroke;import java.awt.font.FontRende 阅读全文
posted @ 2012-10-12 13:02 人生如若初见 阅读(597) 评论(0) 推荐(0) 编辑
摘要: package com.supcon.contingency.util;import java.awt.BasicStroke;import java.awt.Color;import java.awt.Font;import java.awt.geom.Ellipse2D;import java.io.UnsupportedEncodingException;import java.util.List;import org.jfree.chart.ChartFactory;import org.jfree.chart.ChartUtilities;import org.jfree.chart 阅读全文
posted @ 2012-10-12 13:02 人生如若初见 阅读(727) 评论(0) 推荐(0) 编辑
摘要: JFreeChart chart = JFreeChartTool.ToLineChart(list);try {HttpSession session = ServletActionContext.getRequest().getSession();String filename = ServletUtilities.saveChartAsPNG(chart, 500,300, null, session);System.out.println(filename);String graphURL = request.getContextPath()+ "/servlet/Displ 阅读全文
posted @ 2012-10-12 13:00 人生如若初见 阅读(504) 评论(0) 推荐(0) 编辑