includeaccountfields.jsp
来自「经典的关于j2ee架构代码,采用alias+struts,其中struts的重构」· JSP 代码 · 共 47 行
JSP
47 行
<h3>Account Information</h3>
<table>
<tr>
<td>First name:</td><td><html:text name="accountBean" property="account.firstName"/></td>
</tr><tr>
<td>Last name:</td><td><html:text name="accountBean" property="account.lastName"/></td>
</tr><tr>
<td>Email:</td><td><html:text size="40" name="accountBean" property="account.email"/></td>
</tr><tr>
<td>Phone:</td><td><html:text name="accountBean" property="account.phone"/></td>
</tr><tr>
<td>Address 1:</td><td><html:text size="40" name="accountBean" property="account.address1"/></td>
</tr><tr>
<td>Address 2:</td><td><html:text size="40" name="accountBean" property="account.address2"/></td>
</tr><tr>
<td>City:</td><td><html:text name="accountBean" property="account.city"/></td>
</tr><tr>
<td>State:</td><td><html:text size="4" name="accountBean" property="account.state"/></td>
</tr><tr>
<td>Zip:</td><td><html:text size="10" name="accountBean" property="account.zip"/></td>
</tr><tr>
<td>Country:</td><td><html:text size="15" name="accountBean" property="account.country"/></td>
</tr>
</table>
<h3>Profile Information</h3>
<table>
<tr>
<td>Language Preference:</td><td>
<html:select name="accountBean" property="account.languagePreference">
<html:options name="accountBean" property="languages"/>
</html:select></td>
</tr><tr>
<td>Favourite Category:</td><td>
<html:select name="accountBean" property="account.favouriteCategoryId">
<html:options name="accountBean" property="categories"/>
</html:select></td>
</tr><tr>
<td>Enable MyList</td><td><html:checkbox name="accountBean" property="account.listOption"/></td>
</tr><tr>
<td>Enable MyBanner</td><td><html:checkbox name="accountBean" property="account.bannerOption"/></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?