使用struts1如何实现一个登录功能-创新互联
这期内容当中小编将会给大家带来有关使用struts1如何实现一个登录功能,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

环境:MyEclipse 14
1 struts1 框架搭建
在MyEclipse新建web project 取名为struts1_login,此时是一个空文档就不截图了然后在project上右键->选择myeclipse->add struts capabilities

单击上面Install Apache Struts(1.x)Facet

点击next

选择*.do ,改下包名改成与你项目相关的。如我的包名为com.lichang.struts1

点击next

点击完成,在我们的WEB-INF下就会多出struts-config.xml文件
以上就是让myeclipse帮我们加入框架的大概过程。项目的整体结构如下:

至此我们的struts1 框架搭建完成2 接着我们就开始编程来实现了。
2 接着我们就开始编程来实现了。
web.xml 如下:
<?xml version="1.0" encoding="UTF-8"?>struts1_login index.html index.htm index.jsp default.html default.htm default.jsp action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml debug 3 detail 3 0 action *.do
网站名称:使用struts1如何实现一个登录功能-创新互联
分享URL:http://jxruijie.cn/article/deiejj.html
