Struts2:
Action中result的各种转发类型:
内部请求转发dispatcher(默认值)
redirect、redirectAction、plainText
1.redirect是重定向到某个路径、视图
<action name="redirect">/***重定向
<result type="redirect">/employeeAdd.jsp?username=${username}</result>
</action>
URLEncoder.encode("传智播客","UTF-8");
取值解码
在前台<% = URLDecoder.decode(new String(request.getParameter("username").getBytes("ISO8859-1"),"UTF-8"),"UTF-8") %>