struts工作過程:
?
?
?
?
反射代碼:
Class clazz = Class.forName("action全路徑"); Method m =clazz.getMethod("execute"); Object o = m.invoke();
?package標簽:
?
?轉發:地址欄不變
?
?修改struts默認常量值:
常用方法:
<constant name="struts.i18n.encoding" value="UTF-8"></contant>?
action 獲取到表單有亂碼,通過post提交,此常量已經解決post亂碼
其他方法:(了解)
src 下面創建struts.properties,進行修改
在web.xml進行配置
?
?