转载http://justcoding.iteye.com/blog/601117///定义编码header( 'Content-Type:text/html;charset=utf-8 ');//Atomheader('Content-type: application/atom+xml');//...
分类:
Web程序 时间:
2014-06-29 00:36:37
阅读次数:
320
当一个用户关闭Windows或者机器的时候,WPF可以监听到其事件并可以发出警告。事件名称为Application.SessionEnding,在用户注销和关机时触发。通过设置SessionEndingCancelEventArgs.Cancel 为true,可以阻止其注销/关机行为:1 priva...
代码出自MtAndroid3.1.2完全开发手册,适用于Android平台。概述android程序的真正入口是Application类的onCreate方法。它的继承关系如下所示:java.lang.Objectandroid.content.Contextandroid.content.Conte...
分类:
移动开发 时间:
2014-06-21 12:48:33
阅读次数:
250
The following topics are covered in this section:JAAS and WebLogic ServerJAAS Authentication Development EnvironmentWriting a Client Application Using...
分类:
编程语言 时间:
2014-06-21 11:17:39
阅读次数:
198
Billy investigates the question of applying greedy algorithm to different spheres of life. At the moment he is studying the application of greedy algo...
分类:
其他好文 时间:
2014-06-18 15:17:54
阅读次数:
272
http://blogs.msdn.com/b/carlosag/archive/2006/04/17/microsoftwebadministration.aspx最好使用在IIS8中,因为为每一个application pool 都有自己独立的sandbox环境.这些sandbox运行在不同的用...
分类:
Web程序 时间:
2014-06-18 10:28:46
阅读次数:
183
Express 4.x 默认将启动模块分离到了./bin/www中,直接使用 supervisor 无法正常监控应用,使得开发过程中的调试非常不方便。直接在 app.js 添加 app 模块即可。var debug = require('debug')('my-application'); // d...
分类:
其他好文 时间:
2014-06-18 10:23:33
阅读次数:
243
tomcat
edit configurations配置问题:
在deployment选项卡内加入artifact到服务器,在Application context选择应用的上下文路径。
热部署:
在tomcat配置 Server选项卡内 On Update action 选择Update classes and resource
...
分类:
其他好文 时间:
2014-06-18 07:03:44
阅读次数:
231
首先必须要了解客户端跳转和服务器端跳转的区别:
客户端跳转: response.sendRedict(String path),地址栏发生改变。不能传递request属性。
服务器端跳转: 地址栏不发生改变。能传递request属性。
request属性范围: 只有在服务器端跳转以后,所有设置的内容才会停留下来。
session属性范围: 不管是客户端跳转还是服务器端跳转,只要是是属性设...
分类:
编程语言 时间:
2014-06-17 22:27:29
阅读次数:
331
相同:其实servletContext和application 是一样的,就相当于一个类创建了两个不同名称的变量。在servlet中ServletContext就是application对象。大家只要打开jsp编译过后生成的Servlet中的_jspService()方法就可以看到如下的声明:Ser...
分类:
其他好文 时间:
2014-06-17 15:30:03
阅读次数:
187