struts learning summerize
来源:互联网 发布:c语言中实参和形参 编辑:程序博客网 时间:2024/06/03 05:00
一、Struts标签库
1.html标签
<html:form> .
<html:text>.
<html:submit action="">.
<html:radio>.<html:checkbox>
<html:multibox> multi具有记忆上次操作选定的功能
<html:select> <html:options collection="" property="" labelProperty=""/>
Preferred order to provide a link in Struts <html:link>
– Forward
* <html:link forward=“Home”> </html:link>
* Uses the defined global forwards from the struts configuration
file.(you can forward in struts actions instead.)
– Page
* <html:link page=“/someAction.do”> </html:link>
– HREF
* <html:link href=“”>
* Required for javascript
<html:link href=“javascript:history.back(1)”>Back </html:link>
– Action
* <html:link action=“someAction”> </html:link>
Links Example
Links Example
* Text Link
<html:link forward=“Home">Home Page</html:link>
* Image Link
<html:link page="/viewReport.do">
<html:img src="/images/emp_button_view_report.gif" />
</html:link>
Parameterized Links
Links which depend on information available through the
form bean
<html:link page="/viewReport.do"
paramId="model“ paramName="viewModelForm"
paramProperty="model">
<html:img src="/images/emp_button_view.gif" />
</html:link>
There are 2 images tags
– html:img
* Used for normal images
* Used with links
– html:image
* Used for images which function as submit
buttons
* Must be in an struts form
1. <html:errors/>
2. <html:errors property=“username”/>
3. <html:errors property=“password”/>
2.
- struts learning summerize
- Struts Learning Note1 --- Overview
- Struts Learning Note2 --- ActionServlet
- Struts Learning Note3 --- Action
- Struts Learning Note4 --- RequestProcessor
- Struts learning 1.
- the beginning of learning struts
- Learning
- learning
- learning
- learning
- learning
- learning
- learning
- Struts
- STRUTS
- struts
- Struts
- Linux那些事儿 之 戏说USB(10)好戏开始了
- struts+dao+hibernate模式
- 2个经典的SOCKET攻击程序
- 利用ie导出excel文件的方法
- JavaScript 获取浏览器的显示区域大小信息
- struts learning summerize
- 精通样式表技术笔记(四)
- ashx是什么文件,如何创建
- 马钢速度
- 群发送邮件类
- Windows XP Embedded 入门
- 精通样式表技术笔记(五)
- 解决关于"因为配置类型不正确,系统无法开始服务器进程..."的错误
- 实现弹出"提示对话框"之后再进行"页面的转向"