<html:base/> 类似html的<base/>标签
<html:html xhtml="true" lang="true"> 类似与<html>标签
<html:link page="/jsp/simple/source.jsp">
XXX
</html:link> 类似<a href=?>XXX</a>
<html:errors/> 显示错误
<html:form action="/processSimple"> form,并定义一个Action
<html:text property="name" size="40" maxlength="50"/> 文本输入框
<html:password property="secret" size="40" maxlength="50"/> 密码输入框
<html:select property="color">
<html:option value="red">Red</html:option>
<html:option value="green">Green</html:option>
<html:option value="blue">Blue</html:option>
</html:select> 静态的下拉框
<html:radio property="rating" value="1">Actually, I hate it.</html:radio>
<html:radio property="rating" value="2">Not so much.</html:radio>静态单选按钮
<html:textarea property="message" cols="40" rows="6"/> 大文本框
<html:hidden property="hidden" value="Sssh! It's a secret. Nobody knows I'm here."/> 隐藏域
<html:submit>
<bean:message key="button.submit" />来自资源文件的文字
</html:submit>提交按钮
<html:cancel/>取消按钮
|