06 2008 档案

摘要:Create DataBase SHOPPING;gouse SHOPPING;go/*==============================================================*//* Table: CATEGORIES *//*==============================================================*/create table CATEGORIES ( CATEGORY_ID bigint ... 阅读全文
posted @ 2008-06-15 12:39 shine_panda
摘要:<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script> //供DEMO02_01页面的关闭按钮调用 function myFunction(v){ //alert("这里是父窗口中的函数"+v); document.getElementById("parentText").value=v; } //打开新窗口 function openNewWindow(){ window 阅读全文
posted @ 2008-06-15 12:31 shine_panda
摘要:<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script> //补充完成下边的函数,打开新的一个模式窗口 function openShowModalDialog(){ var obj = window; var params = new Array("aaaa",obj);var returnValue = window.showModalDialog("DEMO04_01.html& 阅读全文
posted @ 2008-06-15 12:27 shine_panda
摘要:DEM003.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head></head><frameset rows="70,*" cols="*" framespacing 阅读全文
posted @ 2008-06-15 12:24 shine_panda
摘要:实现功能是 用户本地浏览一个图片后(本来要用上传 为简单起见就制作本地测试) 功过Hibernate中向数据库插入图片 并在另一个页面把这个图片显示出来index.jsp<body> <form name="frm" action="imgServlet" method="post"> <input type="file" name="path"/> <input type="submit" value="提交"& 阅读全文
posted @ 2008-06-06 14:52 shine_panda
摘要:每次在CSDN回贴的时候都会遇到好多关于连接池的贴。自己在测试的时候也发现这个东西,有时候确实比较麻烦。干脆就花了一点时间把他们总结了一下.我机器的环境是 Eclipse3.2 + tomcate5.5+ JDK1.5 +sqlserver2000测试前 首先要确保 sql2000 打了spk3,spk4补丁包。struts中c3p0 连接池的配置。<data-sources > <data-source key="ds" type="com.mchange.v2.c3p0.ComboPooledDataSource"> < 阅读全文
posted @ 2008-06-06 14:28 shine_panda
摘要:Hibernate映射类型对照表java类型Hibernate映射类型SQL类型java.math.BigDecimalbig_decimalnumericbyte[]binaryvarbinary(blob)boolean(java.lang.Boolean)booleanbitbyte(java.lang.Byte)bytetinyintjava.util.Calendarcalendartimestampjava.sql.Clobclobclobjava.util.Date 或java.sql.Datedatedatedouble(java.lang.Double)doubledoubl 阅读全文
posted @ 2008-06-04 20:56 shine_panda
摘要:Spring 和 struts 整合的三种方式。1,使用Spring 的 ActionSupport 2, 使用Spring 的 DelegatingRequestProcessor 类。3,全权委托。无论用那种方法来整合第一步就是要为struts来装载spring的应用环境。 就是在 struts 中加入一个插件。struts-config.xml中<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"><set-property property="con 阅读全文
posted @ 2008-06-02 06:16 shine_panda
摘要:1,通过Listener加载ApplicationContext<context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/applicationContext.xml</param-value></context-param><listener><listener-class>org.springframework.web.context.ContextLoaderListener</l 阅读全文
posted @ 2008-06-01 15:52 shine_panda