在servlet中怎么用application? 在servlet中怎么用application? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 request.getSession().getServletContext().getAttribute("mm");request.getSession().getServletContext().setAttribute("mm","fdsfas") request.getSession().getServletContext()就是application 在servlet类的方法中直接调用getServletContext()就可以获得application 在Servlet中类可以直接调用this.getServletContext()这个方法,就能拿到ServletContext.而ServletContext就相当于JSP页面上的application这个对象。 s2sh整合时使用hibernateTemplate时用junit测试时总是空指针错误 EXT 2个基础问题!希望高手指点 form参数的类型 java.lang.NullPointerException 请教dwr+webwork的配置? 看一个错误说明"unclosed character literal"是什么意思?如何改? 如何根据数据库某字段的值自动给页面的checkbox打勾或不打勾? 利用httpwatch进行性能分析 database的问题 这个class文件应该放在哪个目录下? tomcat启动时出现错误 数据库存取图片显示不全问题
request.getSession().getServletContext().setAttribute("mm","fdsfas")