上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 32 下一页

2014年4月9日

struts OGNL详解

摘要: 首先了解下OGNL的概念:OGNL是Object-Graph Navigation Language的缩写,全称为对象图导航语言,是一种功能强大的表达式语言,它通过简单一致的语法,可以任意存取对象的属性或者调用对象的方法,能够遍历整个对象的结构图,实现对象属性类型的转换等功能。此外,还得先需弄懂OGNL的一些知识:1.OGNL表达式的计算是围绕OGNL上下文进行的。OGNL上下文实际上就是一个Map对象,由ognl.OgnlContext类表示。它里面可以存放很多个JavaBean对象。它有一个上下文根对象。上下文中的根对象可以直接使用名来访问或直接使用它的属性名访问它的属性值。否则要加前缀“ 阅读全文

posted @ 2014-04-09 10:00 锟斤拷锟斤拷 阅读(205) 评论(0) 推荐(0) 编辑

Ognl对象图导航语言 源码

摘要: // --------------------------------------------------------------------------// Copyright (c) 1998-2004, Drew Davidson and Luke Blanshard// All rights reserved.//// Redistribution and use in source and binary forms, with or without// modification, are permitted provided that the following conditions 阅读全文

posted @ 2014-04-09 09:57 锟斤拷锟斤拷 阅读(272) 评论(0) 推荐(0) 编辑

valuestack 根对象CompoundRoot 源码

摘要: /* * Copyright 2002-2006,2009 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * 阅读全文

posted @ 2014-04-09 09:43 锟斤拷锟斤拷 阅读(226) 评论(0) 推荐(0) 编辑

ServletActionContext 源码

摘要: /* * $Id: ServletActionContext.java 651946 2008-04-27 13:41:38Z apetrelli $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF .. 阅读全文

posted @ 2014-04-09 09:26 锟斤拷锟斤拷 阅读(295) 评论(0) 推荐(0) 编辑

ActionContext源码

摘要: /* * Copyright 2002-2006,2009 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * 阅读全文

posted @ 2014-04-09 09:25 锟斤拷锟斤拷 阅读(208) 评论(0) 推荐(0) 编辑

OgnlValueStack 源码

摘要: /* * Copyright 2002-2006,2009 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * 阅读全文

posted @ 2014-04-09 09:24 锟斤拷锟斤拷 阅读(451) 评论(0) 推荐(0) 编辑

ValueStack 源码

摘要: /* * Copyright 2002-2007,2009 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * 阅读全文

posted @ 2014-04-09 09:23 锟斤拷锟斤拷 阅读(205) 评论(0) 推荐(0) 编辑

OgnlContext 源码

摘要: // Copyright (c) 1998-2004, Drew Davidson and Luke Blanshardpackage ognl;import ognl.enhance.LocalReference;import java.util.*;/** * This class defines the execution context for an OGNL expression * * @author Luke Blanshard (blanshlu@netscape.net) * @author Drew Davidson (drew@ognl.org) */public cl. 阅读全文

posted @ 2014-04-09 09:22 锟斤拷锟斤拷 阅读(519) 评论(1) 推荐(0) 编辑

2014年4月8日

java io 流 输入输出 大牛经典总结

摘要: 在软件开发中,数据流和数据库操作占据了一个很重要的位置,所以,熟悉操作数据流和数据库,对于每一个开发者来说都是很重要的,今天就来总结一下I/O,数据库操作一:从数据流开始首先先有一个结构图看一下整个数据流中的API结构和对象继承关系信息: 其他常用与流有关的对象: 首先从字符流开始1、字符流的由来: 因为文件编码的不同,而有了对字符进行高效操作的字符流对象。 原理:其实就是基于字节流读取字节时,去查了指定的码表。字节流和字符流的区别:1,字节流读取的时候,读到一个字节就返回一个字节。字符流使用了字节流读到一个或多个字节(中文对应的字节数是两个,UTF-8码表中是3个字节)时。先去查指定的编码. 阅读全文

posted @ 2014-04-08 17:53 锟斤拷锟斤拷 阅读(1664) 评论(1) 推荐(0) 编辑

ActionContext和ServletActionContext小结

摘要: 1. ActionContext在Struts2开发中,除了将请求参数自动设置到Action的字段中,我们往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServlet Http的请求(HttpServletRequest),响应(HttpServletResponse)操作. 我们需要在Action中取得request请求参数"username"的值:ActionContext context = ActionContext.getContext(); Map params = context.getPar 阅读全文

posted @ 2014-04-08 17:39 锟斤拷锟斤拷 阅读(136) 评论(0) 推荐(0) 编辑

上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 32 下一页

导航