jquery

var u8rl = "<%=request.getContextPath()%>/ContractSubmitAction.do?operation=iniVer&contractId=" + contractDocId; self.location.href =u8rl window.location.href =history.go(-1); var arrow_right ="<%=request.getContextPath()%>/images/arrow_right.gif"; var imgCtrl = document.getElementById("Img"+idName); imgCtrl.src = arrow_down; setTimeout(function () { window.close(); },2000); http://blog.csdn.net/tmanliu/archive/2007/03/24/1539629.aspx http://blog.csdn.net/struts2/archive/2007/08/14/1742621.aspx http://www.javaworld.com.tw/jute/post/view?bid=5&id=257404 private static Configuration config = new Configuration().configure("hibernate.cfg.xml"); private static SessionFactory factory = (SessionFactory)config.buildSessionFactory(); private static Session session; public void test() { session = factory.openSession(); Query query = session.createQuery("select id,name,sex,address from StModel"); Iterator it = query.list().iterator(); while (it.hasNext()) { StModel st = new StModel(); Object[] ob = (Object[] )it.next(); st.setName(String.valueOf(ob[1])); } }

你可能感兴趣的:(jquery,.net,Hibernate,Blog,Go)