This starts a new thread in the current ServletContext.
这样将在当前ServletContext中开始一个新线程。
The ServletContext interface declares two methods for passing data to a log.
ServletContext接口声明了两个方法,用于把数据传给一个日志。
See how I was able to reference the instance of ServletContext via the application variable?
注意我是如何通过application变量引用ServletContext的实例的。
Sometimes you end up with situations where ServletContext is not available, even in the Web tier.
有时,您最终会遇到ServletContext不可用的情形,甚至是在web层中。
ServletContext is simply an interface, and does not dictate how to implement the methods it declares.
ServletContext是一个简单的接口,并且也没有规定怎样实现它声明的方法。
ServletContext: the primary mechanism to communicate with the container and store attributes for the servlet.
ServletContext:用于与容器通信和存储servlet的属性的主要机制。
The approach taken here is to store a mutable holder for the high scoring player's name and score in the ServletContext.
这里采用的方法是在ServletContext中存储一个包含最高分玩家的名字和分数的可变容器。
These methods (shown in Listing 12) can use a FacesContext or a ServletContext for retrieving the wrapper bean from the application scope.
这些方法(如清单12所示)可以使用FacesContext或ServletContext从application作用域检索包装器bean。
Authenticate: This method USES the container login mechanism configured for the ServletContext to authenticate the user making the request.
authenticate:这个方法使用ServletContext上配置的容器登录机制认证用户请求。
It is clear that careful coordination is required when accessing the ServletContext, because the ServletContext is accessible from any request.
很明显,访问ServletContext时需要细心的协作,因为任何请求都可以访问ServletContext。
After both logging methods are made available through the ServletContext interface, the key is to obtain a reference to an object of type ServletContext.
在有了ServletContext接口提供的两个可用的日志记录方法之后,剩下的关键是获取一个对servletcontext类型的对象的引用。
The Web application’s ServletContext is used as a bind target for the container instance, to make it available for subsequent use without having to instantiate it multiple times.
Web应用程序的ServletContext用作容器实例的绑定目标,以使得容器无需多次进行实例化即可供后续使用。
The Web application’s ServletContext is used as a bind target for the container instance, to make it available for subsequent use without having to instantiate it multiple times.
Web应用程序的ServletContext用作容器实例的绑定目标,以使得容器无需多次进行实例化即可供后续使用。
应用推荐