当前位置:编程学习 > JAVA >>

Struts2中获取request,response,session对象

Java代码 
HttpServletRequest request = ServletActionContext.getRequest(); 
        HttpServletResponse response=ServletActionContext.getResponse(); 
        HttpSession session=request.getSession(); 

作者“helinhang”
 

补充:软件开发 , Java ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,