Error处理: 重提No Launcher activity found!
重提No Launcher activity found!错误提示,及解决办法
Android应用开发中No Launcher activity found! 是常见的错误,而且解决办法也很简单。
做Android开发已经很久了,相信自己不会轻易犯这个错误,但是今天却又遇到;在AndroidManifest.xml文件中也很确定的已经添加了
<action android:name="andro...
分类:
其他好文 时间:
2014-06-27 23:28:42
阅读次数:
313
题目
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,...
分类:
移动开发 时间:
2014-06-27 23:20:39
阅读次数:
349
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-06-27 23:01:16
阅读次数:
259
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
分类:
移动开发 时间:
2014-06-27 12:51:24
阅读次数:
258
一:数据对象关系 先大体说下,数据库模型之间的关系,经典的订单系统,供应商和客户有太多共同信息,我们这里存放在一个表里面:Company, 供应商(company) 和产品之间的关系为N:N, 俗话说:一图胜过千言万语,请看关系图: 二:创建项目 1. 创建一个空的解决方案,名为:EFInActio...
分类:
其他好文 时间:
2014-06-27 11:10:57
阅读次数:
246
过滤器
它是在java web中,你传入的request,response提前过滤掉一些信息,或者提前设置一些参数,然后再传入servlet或者struts的 action进行业务逻辑,比如过滤掉非法url(不是login.do的地址请求,如果用户没有登陆都过滤掉),或者在传入servlet或者 struts的action前统一设置字符集,或者去除掉一些非法字符
拦截器
它是在面...
分类:
编程语言 时间:
2014-06-27 10:48:09
阅读次数:
320
实现简单的支持加、减、乘、除的计算器
复制一份Struts1Demo修改:Struts1Calc
方案1: Struts1Calc
创建4个Action,在页面中,通过JavaScript控制提交到不同的Action Bean。
AddAction:
public class AddAction extends Action {
@Override
public ActionForw...
分类:
其他好文 时间:
2014-06-27 08:53:06
阅读次数:
229
首先代理的类和被代理的类要实现共同的接口其实也就是通过接口进行代理,然后在代理类的构造函数中创建被代理类的实例就可以实现代理了。
这样可能很乱看代码就知道明白了!
公共接口类
package com.iss.proxy;
public interface Object {
void action();
}
被代理类
package com.iss.proxy;
...
分类:
其他好文 时间:
2014-06-27 08:29:04
阅读次数:
217
昨天struts2整合json,一直出错:
There is no Action mapped for namespace / and action name ...
HTTP Status 404 - There is no Action mapped for action name...
发现我已经在struts.xml中继承了json-default了啊,后来发现原来是因为没有引入相应...
分类:
Web程序 时间:
2014-06-27 07:44:37
阅读次数:
266
使用通配符,只不过命名的时候*的位置跟{1}保持一致.
我写的这个action继承dispatchAction,parameter=method
假如里面有add方法和edit方法()
访问add方法的时候,使用这个地址:/addPerson.do?method=add-->这个时候input就是/add.jsp
访问edit方法的时候,使用这个:/editPerson.do?...
分类:
其他好文 时间:
2014-06-27 07:21:52
阅读次数:
202