[Hello.jsp] content:
<% @ 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"%>
title> head>
h2> p>
Hello ! h2> logic: present>
html: form>
body>
html: html>
[Struts-config.xml] content:
XML Version = "1.0" Encoding = "UTF-8"?> form -Beans>
INPUT = "/ hello.jsp" action> action-mapings>
struts-config>
[Web.xml] content:
XML Version = "1.0" Encoding = "UTF-8"?> The WebApp Framework Set Character Encoding filter-name> com.javer.test.struts .Encodingfilter filter-class> Encoding param-name> utf-8 param-value> init-param> filter> < Filter-maping> The WebApp Framework Set Character Encoding filter-name> / * url-pattern> filter-maping>
action servlet-name> org.apache.struts.Action.ActionServlet servlet-class> config param Name> /web-inf/struts-config.xml param-value> init-param> 2 loading-on-startup> servlet> < servlet-maping> Action servlet-name> *. do url-pattern> servlet-mapping>
/web-inf/struts-bean.tld taglib-uri> /Web-inf/lib/struts-bean.tld taglib-location> taglib > /web-inf/struts-html.tld taglib-uri> /web-inf/lib/struts-html.tld taglib-location> Taglib> /web-inf/struts-logic.tld taglib-uri> /web-inf/lib/struts-logic.tld taglib-location> < / taglib> web-app>