- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 spring3 bean容器相关源码学习----ApplicationContext接口
/* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y
2014-08-13 10:22:54 644
原创 struts1源码学习9,command链对request和response的处理
先看chain-config.xml <command className="org.apache.struts.chain.commands.ExceptionCatcher" catalogName="struts" exceptionCommand="servlet-exception" /> <lookup
2014-08-08 09:40:24 614
原创 struts1源码学习8,chainBase对request和response的处理
ComposableRequestProcessor的process方法中,最核心的部分实际上是chainBase这个对象来处理的。在ActionServlet.init执行完之后,这个chainBase对象中包含三个command。当chainBase.excute()时,会分别执行三个command的excute。而这三个command中,又由于有lookUpCommand的存在,导致命令
2014-08-07 11:08:56 1333
原创 struts1源码学习7,action处理核心ComposableRequestProcessor
先上源码/* * $Id: ComposableRequestProcessor.java 471754 2006-11-06 14:55:09Z husted $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the
2014-08-06 14:03:17 1325
原创 struts1源码学习6(doPost和doGet)
ActionServlet中的doPost和doGet的代码是一样的,都是调用process
2014-08-04 20:30:20 611
原创 struts1源码学习4
ActionServlet中init方法public void init() throws ServletException { final String configPrefix = "config/"; final int configPrefixLength = configPrefix.length() - 1; // Wraps th
2014-07-31 14:32:57 461
原创 struts1源码学习1
ActionServlet初始化方法initpublic class ActionServlet extends HttpServlet//servlet初始化 public void init() throws ServletException { final String configPrefix = "config/"; final int c
2014-07-31 14:08:21 566
原创 servlet3.0新特性测试,文件上传(1)
servlet代码@MultipartConfig()@WebServlet(name = "test", urlPatterns = "*.do", initParams = { @WebInitParam(name = "", value = "") }, loadOnStartup = 3)public class TestServlet3 extends HttpServlet {
2014-07-30 12:35:55 423
原创 struts1源码学习3
public void init() throws ServletException { final String configPrefix = "config/"; final int configPrefixLength = configPrefix.length() - 1; // Wraps the entire initializatio
2014-07-30 12:35:53 473
原创 Digester
Digester是apache的一个xml解析工具。最近研究struts1源码时候才发现这东西挺好用的,可以很轻松的把XML转化成java对象。上代码public class Acptrule { private String id; private List rules=new ArrayList(); public String getId() { return id; } pu
2014-07-30 12:35:51 349
原创 struts1源码学习2(initChain)
先上代码protected void initChain() throws ServletException { // Parse the configuration file specified by path or resource try { //还是先从servlet配置中找chainConfig //默认值是
2014-07-30 12:35:49 482
oracle·10G函数大全
2011-08-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人