码迷,mamicode.com
首页 >  
搜索关键字:this action after    ( 22292个结果
addTarget:(id) action:(SEL) forControlEvents:(UIControlEvents)的解释
上图是程序运行的过程图,程序有一个主循环,一直不断的去检查是否有监听的事件到达,addTarget:(id) action:(SEL) forControlEvents:(UIControlEvents是把用户点击按钮的监听注册到运行循环中,当运行循环检测到用户点击按钮事件,就去调用id的sel方法...
分类:其他好文   时间:2014-05-26 12:19:13    阅读次数:220
Intent启动照片或者相机
1、Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); intent.putExtra("crop", true); in...
分类:其他好文   时间:2014-05-26 12:00:15    阅读次数:230
Struts1.2 struts-config.xml配置详解
Struts1.2 struts-config.xml配置详解【Struts1.2总结系列】struts-config.xml配置struts-config.xml是Struts的主要配置文件,在该文件中,可以配置数据源、form-bean、action和plug-in(插件)和资源文件的信息。其文...
分类:其他好文   时间:2014-05-26 11:46:54    阅读次数:321
JUnit 4 使用 Java 5 中的注解(annotation)
JUnit 4 使用 Java 5 中的注解(annotation),以下是JUnit 4 常用的几个 annotation 介绍@Before:初始化方法@After:释放资源@Test:测试方法,在这里可以测试期望异常和超时时间@Ignore:忽略的测试方法@BeforeClass:针对所有测试...
分类:编程语言   时间:2014-05-26 09:32:04    阅读次数:302
LeetCode:Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After rem...
分类:其他好文   时间:2014-05-26 09:08:23    阅读次数:262
MVC扩展ActionInvoker,自定义ActionInvoker,根据请求数据返回不同视图
ActionInvoker的作用是:根据请求数据(HttpPost,HttpGet等)和action名称,来激发响应的action,再由action渲染视图。本文通过自定义ActionInvoker,根据请求类型直接渲染视图。控制器中有这样的一个Action: public ActionResult...
分类:Web程序   时间:2014-05-26 08:40:02    阅读次数:323
.net mvc 一个Action的 HttpGet 和 HttpPost
本文转自:http://stackoverflow.com/questions/11767911/mvc-httppost-httpget-for-actionController:[HttpGet]public ActionResult MyMethod(){ return MyMethod...
分类:Web程序   时间:2014-05-26 07:11:19    阅读次数:299
看个人思路吧,清晰的话就简单 CodeForces 271A - Beautiful Year
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits. Now you are suggested to solve the f...
分类:其他好文   时间:2014-05-24 21:52:34    阅读次数:320
struts2国际化全例 错误解决
在struts2中需要做国际化的有: jsp页面的国际化,action错误信息的国际化,转换错误信息的国际化,校验错误信息的国际化 在之前的例子中已经做过和国际化相关的例子了,在struts.xml中配置过   view plaincopy to clipboardprint? constant name="struts.custom....
分类:其他好文   时间:2014-05-24 19:14:09    阅读次数:339
Spring+Struts 2 简单实例报空指针异常
空指针出现于Action注入位置。。如果一般错误请检查配置文件。我出的错误。在于拷贝了之前做的实例中的lib文件夹到这个工程中。其中有个包为struts2-convention-plugin-2.3.16.3.jar造成了包识别异常。出现空指针。有类似经历的可以查看,也给大家提个醒。不要一气呵成的导入所..
分类:编程语言   时间:2014-05-24 15:15:08    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!