📄 maintainaccount.jsp
字号:
<!--
Copyright 2006 Borys Burnayev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html locale="true">
<head>
<title>
Maintain Account
</title>
<html:base />
<link rel="stylesheet" type="text/css" href="../css/petstore.css" />
</head>
<body class="bodystyle" bgcolor="white" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">
<html:form action="/updateAccount">
<table class="normal">
<tr>
<td valign="top">
<div class="categoryName" style="margin-bottom: 10">
Account Information
</div>
<div>
<table class="normal">
<tr>
<logic:present name="account">
<td align="right">
Email ID
</td>
<td>
<bean:write name="maintainAccountForm" property="email" />
</td>
<td></td>
</logic:present>
<logic:notPresent name="account">
<td align="right">
*Email ID
</td>
<td>
<html:text property="email" />
<html:messages id="emailError" property="email">
<span class="error">
<bean:write name="emailError" />
</span>
</html:messages>
</td>
</logic:notPresent>
</tr>
<tr>
<td align="right">
*Password
</td>
<td>
<html:password property="password" />
<html:messages id="passwordError" property="password">
<span class="error">
<bean:write name="passwordError" />
</span>
</html:messages>
</td>
</tr>
<tr>
<td align="right">
*Re-enter PW
</td>
<td>
<html:password property="passwordCopy" />
<html:messages id="passwordCopyError" property="passwordCopy">
<span class="error">
<bean:write name="passwordCopyError" />
</span>
</html:messages>
</td>
</tr>
</table>
</div>
</td>
<td width="50"></td>
<td valign="top">
<div class="categoryName" style="margin-bottom: 10">
Account Address
</div>
<div>
<table class="normal">
<tr>
<td align="right">
*First Name
</td>
<td>
<html:text property="firstName" />
<html:messages id="firstNameError" property="firstName">
<span class="error">
<bean:write name="firstNameError" />
</span>
</html:messages>
</td>
</tr>
<tr>
<td align="right">
*Last Name
</td>
<td>
<html:text property="lastName" />
<html:messages id="lastNameError" property="lastName">
<span class="error">
<bean:write name="lastNameError" />
</span>
</html:messages>
</td>
</tr>
<tr>
<td align="right">
*Street Address
</td>
<td>
<html:text property="streetAddress1" />
<html:messages id="streetAddressError" property="streetAddress1">
<span class="error">
<bean:write name="streetAddressError" />
</span>
</html:messages>
</td>
</tr>
<tr>
<td align="right">
</td>
<td>
<html:text property="streetAddress2" />
</td>
</tr>
<tr>
<td align="right">
*City
</td>
<td>
<html:text property="city" />
<html:messages id="cityError" property="city">
<span class="error">
<bean:write name="cityError" />
</span>
</html:messages>
</td>
</tr>
<tr>
<td align="right">
*State
</td>
<td>
<html:select property="state">
<html:options collection="states" property="stateId" labelProperty="description" />
</html:select>
</td>
</tr>
<tr>
<td align="right">
*Zip
</td>
<td>
<html:text property="zip" />
<html:messages id="zipError" property="zip">
<span class="error">
<bean:write name="zipError" />
</span>
</html:messages>
</td>
</tr>
<tr>
<td align="right">
*Phone Number
</td>
<td>
<html:text property="phone" />
<html:messages id="phoneError" property="phone">
<span class="error">
<bean:write name="phoneError" />
</span>
</html:messages>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="categoryName" style="margin-bottom: 10">
Preferences
</div>
<div class="paragraph">
I want my PetStore to be in
<html:select property="preferredLanguage">
<html:options collection="languages" property="languageId" labelProperty="description" />
</html:select>
</div>
<div class="paragraph">
My favorite category is
<html:select property="favoriteCategory">
<html:options collection="categories" property="categoryId" labelProperty="name" />
</html:select>
</div>
<div class="paragraph">
<html:checkbox property="enableMyList">I want to enable the MyList feature. MyList makes your favorite items and categories more prominent as you shop.
</html:checkbox>
</div>
<div class="paragraph">
<html:checkbox property="enableTips">Yes, I want to enable the pet tips banners. The .NET PetShop will display pet tips as you shop, which are based on your favorite items and categories.
</html:checkbox>
</div>
<div class="paragraph">
<html:submit>
<logic:present name="account">Update
</logic:present>
<logic:notPresent name="account">Create
</logic:notPresent>
</html:submit>
</div>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -