【hello.JSP】內容:
<%@ page contentType="text/Html;charset=UTF-8" language="Java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="Html" %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Hello !
【struts-config.XML】內容:
【web.XML】內容:
The Webapp Framework Set Character Encodingcom.javer.test.struts.EncodingFilter encoding UTF-8 The Webapp Framework Set Character Encoding /*
action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.XML 2
action *.do
/WEB-INF/struts-bean.tld /WEB-INF/lib/struts-bean.tld /WEB-INF/struts-Html.tld /WEB-INF/lib/struts-Html.tld /WEB-INF/struts-logic.tld /WEB-INF/lib/struts-logic.tld