http://blog.sina.com.cn/s/blog_6182547f01013u5s.html
获取ActManager对象,之后可以直接调用ActManager中的方法,远离actManager is null
ServletContext application = ServletActionContext.getRequest().getSession().getServletContext();
或:
HttpServletRequest request=ServletActionContext.getRequest();
ServletContext sc=request.getSession().getServletContext();
SoftNameService service=(SoftNameService)WebApplicationContextUtils.getWebApplicationContext(sc).getBean("softNameService");
SoftName softName=service.get(SoftName.class,"1");
自定义了标签将信息打印到jsp页面中的方法
pageContext.getOut().print(sb);
自定义标签
http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
页面中获取的方式
<oamenu:oamenu/>
QQ群:100162042