10 2013 档案
摘要:1.加载 全局国际化资源文件加载全局国际化资源文件,其实就是配置常量 。不论是struts.properties ,还是struts.xml ,只需要配置常量 : struts.custom.il8n.resources .eg :(1) struts.properties struts.custom.il8n.resources = customResources(2) struts.xml
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号