First download the Struts2 package URL on the struts2 Official Website: http://struts.apache.org/download.cgi#struts221 with this Full Distribution: struts-2.3.8.-all.zip (76 mb) [PGP] [MD5] After decompression find the jar file in lib: the main use of the following: import these packages into your web site under the WEB-INF \ lib; Struts deployment completed: start to use the new webproject, contains the following items: first, change the web. xml file [java] <? Xml version = "1.0" encoding = "UTF-8"?> <Web-app version = "2.5" xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <welcome-file-list> <welcome-file> index. jsp </welcome-file> </welcome-file-list> <! -- Define the core Filter of struts2 --> <filter-name> struts2 </filter-name> <filter-class> org. apache. struts2.dispatcher. ng. filter. strutsPrepareAndExecuteFilter </filter-class> </filter> <! -- Let the core Filter of Struts2 intercept all requests --> <filter-mapping> <filter-name> struts2 </filter-name> <url-pattern>/* </url-pattern> </filter-mapping> </web-app> export ------------------------------ Login. jsp page: [html] <% @ page language = "java" import = "java. util. * "pageEncoding =" gb2312 "%> <% @ taglib pr Efix = "s" uri = "/struts-tags" %> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN">