最新文章列表

Tomcat中Context元素详解(转)

Context元素代表一个web应用,运行在某个特定的虚拟主机上。   如Servlet Specification 2.2或以后版本中描述的那样,每个web应用基于一个Web Application Archive(WAR)文件,或者是一个目录,包含WAR文件解压后的内容。有关Web Application Archive的更多信息,可以参考Servlet Specificatio ...
L.Wing 评论(0) 有973人浏览 2012-02-08 16:32

关于Service的使用

Service是android 系统中的一种组件,它跟Activity的级别差不多,但是他不能自己运行,只能后台运行,并且可以和其他组件进行交互。Service的启动有两种方式:context.startService() 和 context.bindService()。 使用context.startService() 启动Service是会会经历: context.startService( ...
latty 评论(0) 有1047人浏览 2012-01-18 14:06

web.xml中通过contextConfigLocation的读取spring的配置文件

公司的考勤系统程序,有5个spring配置文件:bean-edu.xml,bean-pub.xml,db-edu.xml,db-pub.xml,timer-system.xml,均放置于src目录下,在web.xml中配置这些文件的代码如下: <context-param> <param-name>contextConfigLocation</param-na ...
dhl004 评论(0) 有14077人浏览 2011-12-20 17:26

Introduction to Context Handling in Message Mapping

转自:http://www.riyaz.net/sap/xipi-introduction-to-context-handling-in-message-mapping/5/ Context handling is an important technique to map complex scenarios in XI. This article introduces the basics of ...
shz2008bj 评论(0) 有961人浏览 2011-12-14 14:25

Spring加载多个配置文件

首先我们都知道要使用spring,则需要在web.xml中增加如下代码: Xml代码   <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>     spring是如何加载配置文件肯 ...
hui253753547 评论(0) 有15691人浏览 2011-12-06 11:17

转载 <context-param>与<init-param>的区别与作用

<context-param>的作用: web.xml的配置中<context-param>配置作用 1. 启动一个WEB项目的时候,容器(如:Tomcat)会去读它的配置文件web.xml.读两个节点: <listener></listener> 和 <context-param></context-param> 2.紧接着, ...
姜中秋 评论(0) 有662人浏览 2011-12-06 11:01

web.xml配置context-param

发现某学生在web.xml配置 <context-param>   <param-name>dirver</param-name>   <param-value>com.mysql.jdbc.Driver</param-value>   </context-param>   <context-param>   ...
姜中秋 评论(0) 有844人浏览 2011-12-06 10:55

listenner

public class WebServerListener implements ServletContextListener{     private ServletContext context = null;         public void contextInitialized(ServletContextEvent event)       {          ...
yuhujiaolong 评论(0) 有913人浏览 2011-12-04 14:44

减少tomcat重启

在开发web 系统时,测试中经常修改源文件,过后要重新启动tomcat才能生效,很浪费时间.可以把项目添加到Context,就能实现热布署了. 如: <Host name="www.test.com"  appBase=""             unpackWARs="true" autoDeploy="true&quo ...
jslfl 评论(0) 有841人浏览 2011-12-02 09:39

tomcat的Context属性

Context的实现支持如下属性: 属性 描述 backgroundProcessorDelay 这个值代表在context及其子容器(包括所有的wrappers)上调用backgroundProcess方法的延时,以秒为单位。如果延时值非负,子容器不会被调用,也就是说子容器使用自己的处理线程。如果该值为正,会创建一个新的线程。在等待指定的时间以后,该线程在主机及其 子容器上调用background ...
huangyunbin 评论(0) 有1161人浏览 2011-10-30 22:12

Android 中Locale,auto-rotate状态的获取

1. 得到当前locale: Context.getResources().getConfiguration.locale; 2. 是否开启了auto-rotate:(这个和具体设备似乎也有关系,不确定是否通用) import android.provider.Settings; mAutoRotateSwitch = (Settings.System.getInt(this.getCont ...
guojianhui0906 评论(0) 有1490人浏览 2011-09-21 10:26

关于eclipse中出现Cannot create JDBC driver of class '' for connect URL 'null'

eclipse中出现这个问题 应该去新增的server下面的context.xml中配置 <WatchedResource>WEB-INF/web.xml</WatchedResource> <Resource         name="jdbc/donghuaDB"         auth="Container"    ...
dwlovehcy 评论(0) 有1886人浏览 2011-09-01 11:11

struts2获取request,session,application

获取request、session的方法 2.1 与servlet无关: 2.1.1 非IoC模式 Java代码 ActionContext context ;//该方法还可以取得值栈(getValueStack()),使用push(obj)往值栈中放数据 Map request ; Map session ...
dchengquan53390 评论(0) 有1118人浏览 2011-08-11 18:25

写Service Demo的时候遇到的一个问题小结一下

我写了一个  Service 的Demo,但是将启动Service的Intent声明为主Activity的成员变量时, public class MyServiceActivity extends Activity { private Button startSer1; private Button stopSer1; private Button startSer2; priv ...
Rainbow702 评论(2) 有8506人浏览 2011-08-08 14:29

android 中 涉及到context的时候this和this.getApplictionContext的区别

在android中常常会遇到与context有关的内容,特写下这篇blog,浅论一下context : 在语句 AlertDialog.Builder builder = new AlertDialog.Builder(this); 中,要求传递的 参数就是一个context,在这里我们传入的是this,那么这个this究竟指的是什么东东呢? 这里的this指的是Activ ...
liuyun025 评论(1) 有8468人浏览 2011-08-04 13:59

Spring:基于数据流创建ApplicationContext

问题描述: 1、Spring的配置文件,以Clob的方式保存在数据库中,可以通过数据流的方式访问。在这种情况下,如何初始化ApplicationContext对象。 2、不允许现将流写入本地临时文件。   解决方案:   继承AbstractXmlApplicationContext类,代码如下: public class StreamXmlApplicationContext ex ...
xiaoyu1985ban 评论(0) 有1144人浏览 2011-08-02 16:36

在非Activity子类跳转

  由于 Context..只存在于 Activity Service的子类中....... 所以出现在非 Acitvity 子类中无法获取Context..无法执行跳转 Intent intent = new (Context,Class); startActivity(intent);   类名  继承于 A (Acivity) B(MapActivity) C(Overlay ...
zengyan2012 评论(2) 有2693人浏览 2011-04-26 10:51

最近博客热门TAG

Java(141747) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics