- 浏览: 101096 次
- 性别:
- 来自: 深圳
最新评论
-
Fs_sky:
请问怎么讲SOAP消息转换成标准的XML格式?
将soap报文(或xml)转换成对象 -
guoshunpingsk:
...
linux下安装JDK1.6 -
scu_lbl:
楼主发一个实例吧,地址scu_lbl@sina.com.谢谢。 ...
struts2.2.1+hibernate3.6.0+spring3.0.5+proxool-0.9.1实例(1) -
0604hx:
过于简单了吧, 讲得不是很详细哈。比如现在兴起的基于注解的拦截 ...
spring mvc即mvc拦截器实例(2) -
0604hx:
sasasasasa sasa[align=center][ ...
spring mvc即mvc拦截器实例(2)
文章列表
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;
if(parent!=window){
top.location=window.location;
}
表:
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
内连接:根据左连接来说,不会将左表的所有记录列 ...
迅雷下载
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- ...
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()+ ...
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();;
publ ...
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 ...
<?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.c ...
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.OracleD ...
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 ...
导入所需要的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- ...
控制器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
publi ...
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/n ...
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.DocumentH ...