Struts2.0.11配置..
来源:互联网 发布:js的null和undefined 编辑:程序博客网 时间:2024/06/05 08:57
1.准备工作:下载struts-2.0.11文件包,官网可以找到,不过要费点时间,以前的链接都不存在了,如果没有包,可以发EMAIL:oyjqdlp@126.com 。
把下载的包解压,然后在lib中找到以下的包文件:struts2-core-2.0.11.1.jar、xwork-2.0.4.jar、commons-logging-1.0.4.jar、freemarker-2.3.8.jar、ognl-2.6.11.jar并将这些包拷贝到app/WEB_INF/lib下面。其它的文件暂时不用。
2.编写配置文件,找到web.xml加入以下代码:
3.配置Struts.xml文件,在工程目录下的src新建struts.xml文件,并加入以下代码:
4.创建Action,本人配置文件中<action name="login" class="actions.LoginAction">
解释:<action name="访问名称" class="完整的类名">
如上我们可以通过://localhost:8080/工程名/app/login.action 访问
Struts2.0.11配置完成....
- Struts2.0.11配置..
- struts2配置
- struts2配置
- Struts2配置
- Struts2配置
- struts2 配置
- Struts2配置
- Struts2配置
- Struts2 配置
- struts2 配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- struts2配置
- 内存对齐与ANSI C中struct型数据的内存布局
- C# 点击按钮浏览文件夹
- 适配器模式(adapter pattern)(插座转换)
- Sicily 1001 Alphacode
- Windows Mobile 5 Pocket PC手机模拟器安装设置
- Struts2.0.11配置..
- bad news,good news,奇异事件
- Telnet学习命令
- 开博,用于记录一下心得
- 栈和队列-算术表达式的求值
- 读取二代身份证上的相片,函数GetBmp(char * Wlt_File,int intf) 怎么用?
- 仿站
- 以二进制流的形式上传图片
- 使用读卡器实现pos消费