ITeye博客

xiangsheng的博客

xiangsheng · 共 36 篇文章

oracle 生成GUID函数

create or replace function GetGUID return varchar2 is guid varchar(64); begin guid := SYS_GUID(); return substr(guid,1,8)||'-'||substr(guid,9,4)|| '-'||substr(guid,13,4)||'-'||substr(guid,17,4) ||'-'||substr(guid,21,12); end GetGUID;

2011-12-20 11:44 · 评论(0)

不被frame包住

if(parent!=window){ top.location=window.location; }

2011-11-29 10:01 · 评论(0)

多行字符替换器。

多行字符替换器。支持所有格式,支持多行替换,非常好用!!

2011-11-13 20:02 · 评论(0)

左连接、右连接、外连接、内连接、全连接

表: test1 id name 1 aaa 2 bbb 3 ccc test2 id name 1 eee 1 fff 3 ggg 左连接也称左外连接(右连接同理):将左表的所有记录列出,右表中只要符合on条件的,与左表记录相拼合,不符合条件的,填以null值。 例:select t1. ,t2. from test1 t1 left join test2 t2 on t1.id=t2.id 结果: id name id name 1 aaa 1 eee 1 aaa 1 fff 3 ccc 3 ggg 2 bbb null null 内连接:根据左连接来说,不会将左表的所有记录列出,不符合…

2011-03-16 17:32 · 评论(0)

windows server 2003 EE sp2 r2 32位

迅雷下载 thunder://QUFodHRwOi8vZG93bi54bHlsdy5jb20vRG93bmxvYWQuYXNwP0lEPTIyNiZzSUQ9MFpa thunder://QUFodHRwOi8vZG93bi54bHlsdy5jb20vRG93bmxvYWQuYXNwP0lEPTIyNyZzSUQ9MFpa 32位KEY T274Y-RT6TY-QYXJC-H6K66-3MT7M H32XR-3KT6X-B83DT-YWM3T-8Q3JG DF33F-WMT84-KDPKT-FQBRG-7YH4T BYR7R-QTCG2-JRJWJ-BJPGP-XDKWG RW89D-BPH…

2011-03-02 09:41 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(7)

index.jsp: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tran…

2011-02-22 08:54 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(6)

service代码: package com.yj.service; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Component; import com.yj.dao.UserDAO; import com.yj.model.User; @Component public class UserService { private UserDAO userDAO = new UserDAO();; public UserDAO getUserDAO…

2011-02-22 08:53 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(5)

action代码: package com.yj.action; import javax.annotation.Resource; import org.apache.struts2.convention.annotation.Result; import org.apache.struts2.convention.annotation.Results; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.opensy…

2011-02-22 08:52 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(4)

<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"> <welcome-file-list> <welcome-file>i…

2011-02-21 17:50 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(3)

proxool.xml配置如下: <?xml version="1.0" encoding="utf-8"?> <something-else-entirely> <proxool> <alias>datasource</alias> <driver-url>jdbc:oracle:thin:@127.0.0.1:1521:TEST</driver-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <driver-properties> <property name="user" value="test" />…

2011-02-21 17:49 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(2)

applicationContext.xml.xml配置如下: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop"…

2011-02-21 17:48 · 评论(0)

struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(1)

导入所需要的jar包: xwork-core-2.2.1.jarxwork-core-2.2.1.jar struts2-spring-plugin-2.2.1.jarstruts2-spring-plugin-2.2.1.jar struts2-core-2.2.1.jarstruts2-core-2.2.1.jar struts2-convention-plugin-2.2.1.jarstruts2-convention-plugin-2.2.1.jar slf4j-nop-1.6.1.jarslf4j-nop-1.6.1.jar slf4j-api-1.6.1.jarslf4j-api…

2011-02-21 17:46 · 评论(2)

spring mvc即mvc拦截器实例(2)

控制器java代码 package springapp.web; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; //声明为servlet控制器 @Controller public class Hello…

2011-02-15 15:23 · 评论(2)

spring mvc即mvc拦截器实例(1)

web.xml配置 <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>sp…

2011-02-15 15:20 · 评论(0)

将soap报文(或xml)转换成对象

import java.io.ByteArrayInputStream; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.impl.builder.StAXOMBuilder; import org.apache.axis2.databinding.utils.BeanUtil; import org.apache.axis2.engine.DefaultObjectSupplier; import org.dom4j.Document; import org.dom4j.DocumentHelper; pub…

2010-12-15 16:48 · 评论(1)