Struts1基本配置
以下记录Struts1基本配置。
一、下载Struts1.3
链接如下:http://struts.apache.org/download.cgi#struts1310
二、拷贝lib下面的所有包到项目WEB-INF\LIB下。
三、修改web.xml内容如下:
?
四、在WEB-INF下新建struts-config.xml文件内容如下。
?
五、新建UserForm类文件
?
logon.jsp如下。
?
result.jsp如下:
?
运行程序,最终结果返回到result.jsp,显示result.
?
?
附件为代码: