EL存取变量数据的方法很简单,例如:${username}。它的意思是取出某一范围中名称为username的变量。因为我们并没有指定哪一个范围的username,所以它的默认值会先从Page范围找,假如找不到,再依序到Request、Session、Application范围。假如途中找到username,就直接回传,不再继续找下去,但是假如全部的范围都没有找到时,就回传null,当然EL表达式还会做出优化,页面上显示空白,而不是打印输出NULL。属性范围(jstl名称)EL中的名称PagePageScopeRequestRequestScopeSessionSessionScopeAppli Read More
posted @ 2013-08-09 14:14 等风来。。 Views(242) Comments(0) Diggs(0) Edit
1.“#”主要有三种用途:访问OGNL上下文和Action上下文,#相当于ActionContext.getContext();可以访问这几个ActionContext中的属性。parameters#parameters.id[0]作用相当于request.getParameter("id")request#request.userName相当于request.getAttribute("userName")session#session.userName相当于session.getAttribute("userName")appli Read More
posted @ 2013-08-09 14:11 等风来。。 Views(389) Comments(0) Diggs(0) Edit
正想着该如何实现左图片右文字。原来SimpleAdapter可以胜任这个工作。First, if aSimpleAdapter.ViewBinderis available,setViewValue(android.view.View, Object, String)is invoked. If the returned value is true, binding has occurred. If the returned value is false,the following views are then tried in order:A view that implements Che Read More
posted @ 2013-08-08 22:56 等风来。。 Views(450) Comments(0) Diggs(0) Edit
因为service在默认情况下是在主线程执行的。所以为了方便,正如AsyncTask用来简化我们编写工作线程,android也提供了IntentService用来执行长期运行的服务。 IntentService is a base class forServicesthat handle as... Read More
posted @ 2013-08-08 16:05 等风来。。 Views(270) Comments(0) Diggs(0) Edit
(1)START_NOT_STICKY If the system kills the service afteronStartCommand()returns,do notrecreate the service, unless there are pending intents to deli... Read More
posted @ 2013-08-08 15:05 等风来。。 Views(544) Comments(0) Diggs(0) Edit
1 cd ‘你的应用目录’2 af login(之后输入你的邮箱和密码)3 af update ‘你的应用名’相关文档:https://docs.appfog.com/getting-started/af-cli在windows命令提示符文件路径自动完成在输入文件路径时,我们可以只输入文件路径的前一部分,比如cd doc,如果当前目录下有docment文件夹,然后按Tab键就可以自动完成。 Read More
posted @ 2013-08-07 14:58 等风来。。 Views(204) Comments(0) Diggs(0) Edit
Class used to run a message loop for a thread. Threads by default do not have a message loop associated with them; to create one, callprepare()in the thread that is to run the loop, and thenloop()to have it process messages until the loop is stopped. 1 class LooperThread extends Thread { 2 p... Read More
posted @ 2013-08-06 19:42 等风来。。 Views(600) Comments(0) Diggs(0) Edit
Handy class for starting a new thread that has a looper. The looper can then be used to create handler classes. Note that start() must still be called.1。看source code (省略部分) 1 public class HandlerThread extends Thread { 2 3 int mTid = -1; 4 Looper mLooper; 5 6 /** 7 * Call bac... Read More
posted @ 2013-08-06 17:42 等风来。。 Views(327) Comments(0) Diggs(0) Edit
①application/x-www-form-urlencoded : 数据被编码为名称/值对。②multipart/form-data : 数据被编码为一条消息,页上的每个控件对应消息中的一个部分。③text/plain: 数据以纯文本形式进行编码。 1. text/plain是纯文本传输的意思 Read More
posted @ 2013-08-05 00:30 等风来。。 Views(1008) Comments(0) Diggs(0) Edit
There are many things that can go wrong:A class works in Unix but doesn't on Windows (or vice versa)Invalid filenames due to double or missing path separatorsUNC filenames (on Windows) don't work with my home-grown filename utility functionUNC (Universal Naming Convention)通用命名约定。windows目录或文件 Read More
posted @ 2013-08-05 00:20 等风来。。 Views(328) Comments(0) Diggs(0) Edit
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------