<%@taglib uri=”/struts-tags” prefix=”s” %>
只能在jsp中引用;
0 struts2标签使用jsp页面中
1 s:property: 和ognl表达式在jsp页面中获取值栈数据
2 s:iterator: 获取值栈list集合数据,表示list集合
3 s:debug: 查看值栈结构和数据
Struts2表单标签(会用)
1 html表单标签
(1)form : action、method、enctype
(2)输入项
- 大部分在input里面封装 type=”值”
- text:普通输入项
- password:密码输入项
- radio:单选输入项
- checkbox:复选输入项
- file:文件上传项
- hidden:隐藏项
- button:普通按钮
- submit:提交按钮
- image:图片提交
- reset:重置
- select:下拉输入项
- textarea:文本域
2 在struts2里面对应html表单标签大部分都有