呃,被坑了几个小时,后来发现,在调用setResult的时候,requestCode随便传了个Activity的RESULT_OK,而这个常量的值是-1,导致onActivityResult没有被调用。握了棵草啊。。。看看文档:requestCode If >= 0, this code will ...
分类:
其他好文 时间:
2014-07-15 00:30:06
阅读次数:
3307
1.4.1、编译过程在编译环境配置完成后就可以在CMD中进行编译编译命令:ant –buildfile build.xml如图上所示编译成功(备注,编译过程中,get-revision:[exec]Result:1与编译结果没多大影响,可以忽略)1.4.2、编译是否成功验证Test.html(不能放...
分类:
其他好文 时间:
2014-07-15 00:26:49
阅读次数:
263
第一种方法:代码简单,兼容性还可以,大家可以先测试下:function SetWinHeight(obj) { var win=obj; if (document.getElementById) { if (win && !window.opera) { if...
分类:
其他好文 时间:
2014-07-15 00:25:37
阅读次数:
368
form.submit({ url:"../addOrUpdatePack.shtml",method:'POST',success:function(f,action) {//f是代表formalert('rpackCode:'+action.result.rpackCode) }, ...
分类:
其他好文 时间:
2014-07-15 00:01:59
阅读次数:
262
Overcommits KVM allows for both memory and disk space overcommit. However, hard errors resulting from exceeding available resources will result in gue...
分类:
其他好文 时间:
2014-07-14 23:36:34
阅读次数:
385
namespace为空action指定class,将会执行Action::execute,返回一个字符串,然后根据字符串,寻找result,实现Action接口,继承ActionSupportnamespace 没有,那么交给welcome-liist这个文件href超级链接,--绝对路径 ,bas...
分类:
其他好文 时间:
2014-07-14 22:33:13
阅读次数:
351
result的类型有好几种1, dispatcher 这是服务器端跳转,structs默认的就是服务器端跳转2,redirect,这是客户端跳转。3,chain 访问action 4,redirectAction也是重定向到某一个action================= /main.jsp.....
分类:
其他好文 时间:
2014-07-14 22:23:32
阅读次数:
324
struts2中的配置文件中只要添加以下配置,那么以后修改配置文件不用重启tomcat的方法。于是自己手动试了试,没想到这一试竟然试出问题来要添加的代码:view plaincopy to clipboardprint?Xhtml代码struts.devMode也就是struts的开发模式,默认值为...
分类:
其他好文 时间:
2014-07-14 22:17:37
阅读次数:
292
How do I insert a space to a NSString.I need to add a space at index 5 into:NString * dir = @"abcdefghijklmno";To get this result:abcde fghijklmnowith...
分类:
其他好文 时间:
2014-07-14 21:12:21
阅读次数:
175
$("#result").find("tr").each(function () { $(this).find("td").each(function () { if ($(this).text().indexOf("惠") > ...
分类:
Web程序 时间:
2014-07-14 19:04:17
阅读次数:
276