<table width="100%">
<fmt:bundle basename="ApplicationResources">
<fmt:setLocale value="zh_CN" />
<tr>
<td class="formtitle" width="15%"><fmt:message key="process.processname" /></td>
<td class="formtd" width="35%"><input type="text" name="model.processname" value="${model.processname}" class="required" /> <input type="hidden" name="model.state" value="${model.state}" />
</td>
<td class="formtitle" width="15%"><fmt:message key="process.btypename" /></td>
<td class="formtd" width="35%"><input type="text" name="model.btypename" value="${model.btypename}" /><input type="hidden" name="model.btypeid" value="${model.btypeid}" /></td>
</tr>
<tr>
<td class="formtitle" width="15%"><fmt:message key="process.comments" /></td>
<td class="formtd" width="35%" colspan=3><textarea rows="3" cols="115" name="model.comments">${model.comments}</textarea></td>
</tr>
</fmt:bundle>
</table>
<fmt:bundle basename="ApplicationResources">
<fmt:setLocale value="zh_CN" />
<tr>
<td class="formtitle" width="15%"><fmt:message key="process.processname" /></td>
<td class="formtd" width="35%"><input type="text" name="model.processname" value="${model.processname}" class="required" /> <input type="hidden" name="model.state" value="${model.state}" />
</td>
<td class="formtitle" width="15%"><fmt:message key="process.btypename" /></td>
<td class="formtd" width="35%"><input type="text" name="model.btypename" value="${model.btypename}" /><input type="hidden" name="model.btypeid" value="${model.btypeid}" /></td>
</tr>
<tr>
<td class="formtitle" width="15%"><fmt:message key="process.comments" /></td>
<td class="formtd" width="35%" colspan=3><textarea rows="3" cols="115" name="model.comments">${model.comments}</textarea></td>
</tr>
</fmt:bundle>
</table>
本文介绍了一种基于Java的Web应用中表单输入控件的配置方法,展示了如何使用JSP标签库来设置表单元素,如文本框、隐藏字段及文本区域,并通过国际化资源文件实现多语言支持。
5226

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



