$(".easyui-treegrid").treegrid({url: '@Url.Action("GetDataDictionaryList", "DataDictionary")',onLoadSuccess: function (row, data) {$.each(data, functi...
分类:
其他好文 时间:
2014-06-28 18:19:10
阅读次数:
147
如何让视图通过某种途径,把符合日期格式的字符串放到路由中,再传递给类型为DateTime的控制器方法参数?即string→DateTime。MVC默认的ModelBinder并没有提供这样的机制,所以我们要自定义一个ModelBinder。 首先,在前台视图中,把符合日期格式的字符串赋值给date变...
分类:
Web程序 时间:
2014-06-28 15:17:24
阅读次数:
191
本文内容来自:《传智播客-OA项目》1,充分了解需求,包括所有的细节,需要知道要做一个什么样的功能2,设计实体/表正向工程:设计实体、映射文件? 建表反向工程:设计表 ? 映射文件、实体3,分析功能分析到每个请求的粒度。得到的结果是我们需要处理多少种请求,其中每种请求对应一个Action方法。4,实...
分类:
其他好文 时间:
2014-06-28 14:15:54
阅读次数:
206
如果我们在web.xml中配置的struts2的接收请求的路径为: struts2 /* 是可以用struts2中使用servlet的,只是必须让struts2的action来转发到servlet的url-pattern中的地址就可以了。我们简单的举例如下:例如定义了一个ser...
分类:
Web程序 时间:
2014-06-28 12:53:40
阅读次数:
227
打开系统相册获取图片并截取,代码相对简单 1 Intent intent = new Intent(Intent.ACTION_GET_CONTENT,null); 2 intent.setType("image/*"); 3 intent.putExtra("cro...
分类:
移动开发 时间:
2014-06-24 09:45:53
阅读次数:
360
我们有时候需要将文本、图片等分享到微博、微信、qq好友等,网上有好多代码,实现复杂,对于初学者来说,读起来很困难,其实,分享这一功能是很容易实现的。实现代码如下(经过了测试):1、分享文本:Intent intent = new Intent(Intent.ACTION_SEND); //启动分享发...
分类:
微信 时间:
2014-06-24 09:41:47
阅读次数:
427
Action Filter 允许你在调用Action方法之前或之后可以自定义的处理一些逻辑.Action Filter是用户自定义的Action方法Attributes.有些可能用到Filter的场景:日记和异常记录身份验证和授权要地化处理 动态Action, 将一个Action注入到Control...
分类:
Web程序 时间:
2014-06-23 07:09:41
阅读次数:
214
通常struts.xml都是如下形式: struts元素下有五个元素,只讲解package、constant、include;package: 在Struts2框架中是通过包来管理action、result、interceptor、interceptor-stack等配置信息的。属性:n...
分类:
其他好文 时间:
2014-06-22 23:29:51
阅读次数:
296
Server management the Erlang node and the Erlang application Starting nodes multiple Erlang applications can run inside the same node an application o...
分类:
其他好文 时间:
2014-06-21 16:36:43
阅读次数:
387
1. Consumers and producers Producers create messages and publish (send) them to a broker server (RabbitMQ). A message has two parts: a payload and a l...
分类:
其他好文 时间:
2014-06-21 14:33:14
阅读次数:
431