12 2016 档案

摘要:一.配置struts.xml文件 1.struts.xml文件 2.常量配置 <constant> struts.properities web.xml中的<init-param> 3.包配置 Struts2框架的核心组件是Action和拦截器,它使用包来管理Action和拦截器。每个包就是多个Ac 阅读全文
posted @ 2016-12-16 11:11 stubbornnnnnnn 阅读(162) 评论(0) 推荐(0)
摘要:请求响应流程图 response response是用来向客户端响应的对象! 需要回忆一下http响应内容: l 首行:状态码 l 响应头: 1头1值,1头多值; l 响应体(正文):html response响应状态码: l setStatus(int sc):一般用来发送非错误的状态码。 l s 阅读全文
posted @ 2016-12-13 20:12 stubbornnnnnnn 阅读(324) 评论(0) 推荐(0)