Struts1 源代码笔记
来源:互联网 发布:网络电话卡代理销售 编辑:程序博客网 时间:2024/06/06 12:49
//jsp页面获取ActionMapping
request.setAttribute(Globals.MAPPING_KEY, mapping);//MAPPING_KEY = "org.apache.struts.action.mapping.instance";
//jsp页面获取ActionForm:一
request.setAttribute(mapping.getAttribute(), instance);/*public String getAttribute() {if (this.attribute == null) { return (this.name);} else { return (this.attribute);}}*/
//jsp页面获取ActionForm:二
request.getAttribute(org.apache.struts.taglib.html.Constants.BEAN_KEY)
//该方法只能用在struts标签中,例如:
<html:form>request.getAttribute(org.apache.struts.taglib.html.Constants.BEAN_KEY);</html:form>
org.apache.struts.taglib.html.FormTag源代码
doStartTag():pageContext.setAttribute(Constants.BEAN_KEY, bean, PageContext.REQUEST_SCOPE);doEndTag():pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE);
//struts填充参数用到的方法
BeanUtils.populate(bean, properties);
- Struts1 源代码笔记
- struts1笔记
- Struts1 笔记
- Struts1.3源代码学习总结
- Struts1.2 学习笔记
- struts1.x小笔记
- struts1 课题笔记
- Struts1.x 学习笔记
- struts1学习笔记
- struts1学习笔记1
- Struts1 - 学习笔记 - Action
- Struts1 - 学习笔记 - ActionForm
- struts1.x学习笔记
- struts1学习笔记一
- struts1学习笔记二
- struts1学习笔记三
- Struts1笔记理解(1)
- Struts1 demo与笔记
- SharedPreferences介绍
- 用ogre做图像引擎,用MITA做音频引擎做游戏的源代码3(附完整工程代码资源下载地址)
- javascript显示对象所有属性与方法
- linux系统调用与文件I/O操作
- Java笔试题
- Struts1 源代码笔记
- 解决jsp页面乱码问题
- 相亲相爱
- 手机游戏策划模版
- Fedora 14在笔记本上的安装日志
- Oracle11g,在SQL Developer里新建连接时出现错误(已解决)
- 什么是游戏策划,如何成为一名游戏策划
- 关于Ext4的mvc模式构建前端界面的问题!reader.read is not a function
- 今天和大家讲一下怎么样简单的把壁纸作为背景,在中间加一个textview效果图如下