struts2
教授V5
这个作者很懒,什么都没留下…
展开
-
Struts2 常量(SUCCESS、NONE、ERROR、INPUT、LOGIN)_详解
-- SUCCESS static final String SUCCESS 英文解释: The action execution was successful. Show result view to the end user. 汉语 NONE static final StringNONE 英文解释: The action execution was转载 2017-11-04 20:33:09 · 518 阅读 · 0 评论 -
配置web.xml,配置Struts2的过滤器
配置web.xml,配置Struts2的过滤器,例如: filter> filter-name>struts2filter-name> filter-class> org.apache.struts2.dispatcher.FilterDispatcher filter-class> filter> fil原创 2017-12-23 20:18:24 · 4599 阅读 · 0 评论 -
Struts2中DTD文件的添加
在初学Struts2时,配置【struts.xml】文件时,没有自动提示,需要自己敲的时候是不是很苦恼,很痛苦啊???? 看完这篇,可以解决这一痛苦之处,让你觉得世界又美好许多~~~ 首先复制这一行代码 路径很清楚的展示了【..\struts-2.3.7\struts-2.3.16.1\src\core\src\main\resources】原创 2017-12-23 20:29:02 · 698 阅读 · 2 评论 -
在struts2 中select标签
首先你要用到select,可以只使用 标签,解释下这个标签属性: headerValue : 默认值value headerKey : 默认name list : 源数据 (可以在action方法里从数据库获取list) name : 被选数据存放的位置(这里我方在对象obj的属性值userName中) listKey : 下拉选项的name listValue : 下拉选项的v原创 2018-01-13 19:43:45 · 573 阅读 · 0 评论 -
配置struts2文件,当页面很多的时候,这样简写
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> &am原创 2018-02-24 10:39:25 · 197 阅读 · 0 评论