一.<HTML:>篇:
1.<html:form action="/login" method="post" focus="username">相当于HTML中的<form>,其中focus属性为初始化光标对应username这个表单元素
2.<html:text property="">相当于<input type="text" value="">.其中property属性表示:查找与form对应的formbean,并调用其对应的属性值来填充次标记内容.(<html:password>跟<html:text>一样)
3.<html:error property="">其中property属性表示只显示和property属性相关的错误信息.
4.<html:submit/>跟<html:cancel>都相当于<input type="submit" ...>
1.<html:form action="/login" method="post" focus="username">相当于HTML中的<form>,其中focus属性为初始化光标对应username这个表单元素
2.<html:text property="">相当于<input type="text" value="">.其中property属性表示:查找与form对应的formbean,并调用其对应的属性值来填充次标记内容.(<html:password>跟<html:text>一样)
3.<html:error property="">其中property属性表示只显示和property属性相关的错误信息.
4.<html:submit/>跟<html:cancel>都相当于<input type="submit" ...>
本文详细介绍了Struts2框架中HTML标签的使用方法,包括表单元素、错误信息展示及按钮等标签的属性说明。
453

被折叠的 条评论
为什么被折叠?



