this

10 2013 档案

摘要:1.加载 全局国际化资源文件加载全局国际化资源文件,其实就是配置常量 。不论是struts.properties ,还是struts.xml ,只需要配置常量 : struts.custom.il8n.resources .eg :(1) struts.properties struts.custom.il8n.resources = customResources(2) struts.xml 阅读全文
posted @ 2013-10-23 00:03 湖南司马懿 阅读(122) 评论(0) 推荐(0)
摘要:1 Struts2.0 Action 访问 Servlet API ---->通过Struts2.0提供的ActionContext 类 . 访问Servlet 的 HttpServletRequest、HttpSession、 ServletContext .2Struts2.0 Action 直接访问 Servlet API 提供 ServletContextAware 、ServletRequestAware 、ServletResponseAware 三大接口3 使用 Struts 2.0 提供的ServletActionContext.java 工具类 访问 Servlet A 阅读全文
posted @ 2013-10-21 00:19 湖南司马懿 阅读(164) 评论(0) 推荐(0)