public class ActionContext implements Serializable The ActionContext is the context in which an Action is executed. Each context is basically a container of objects an action needs for execution like the session, parameters, locale, etc. The ActionCo…
1. ThreadLocal:该类提供了线程局部(thtead-local)变量.threadLocal是一个容器,该容器中存放的数据可以保证线程安全. 案例如: public class ThreadLocalDemo { public static void main(String[] args) { final ThreadLocal<Integer> tl = new ThreadLocal<Integer>(); //向ThreadLocal中存放数据 tl.set(20…
ServletContext ServletContext从他的package信息可以看出,它是标准的JavaEE WebApplication类库 javax.servlet.ServletContext ServletContext提供了标准的Servlet运行环境,其实就是一些servlet和web container进行通信的方法 public interface ServletContext { // Returns the URL prefix for the ServletCont…