ServletContext app = getServletContext(); // 获得上下文对象
StringBuffer objMsg = (StringBuffer) app.getAttribute("objMessage"); // 获得和objMessage关键字绑定的对象
app.setAttribute("objMessage", objMsg); // 把消息对象再次和关键字绑定大家帮我看下getServletContext()的用法,我看了这段代码,我感觉这是request,或 session的用法,我想问下,这是不是application哦
StringBuffer objMsg = (StringBuffer) app.getAttribute("objMessage"); // 获得和objMessage关键字绑定的对象
app.setAttribute("objMessage", objMsg); // 把消息对象再次和关键字绑定大家帮我看下getServletContext()的用法,我看了这段代码,我感觉这是request,或 session的用法,我想问下,这是不是application哦
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货