一个关于dwr和struts结合的问题

请问下各位大哥些:
怎样才能在dwr对应的类中使用struts2中的ActionContext.getContext().getApplication().get("**");
并取到他对应 的值

在dwr中可以用以下方法访问servlet的上下文环境:
[code="java"]HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
HttpServletResponse res = WebContextFactory.get().getHttpServletResponse();
HttpSession session = WebContextFactory.get().getSession();
ServletConfig config = WebContextFactory.get().getServletConfig();
ServletContext context = WebContextFactory.get().getServletContext();
[/code]

不可以的,ActionContext只能在action里使用。

这个东西应该是浏览器里头有的吧

你试下 request. 和 response.

这两个里头有没有你要的东西 。

action 能获取的东西,他们肯定都能获取。