subscription.jsp
来自「Apache struts-1.3.10 a stable version」· JSP 代码 · 共 152 行
JSP
152 行
<%--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:html>
<head>
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Create">
<title><bean:message key="subscription.title.create"/></title>
</logic:equal>
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Delete">
<title><bean:message key="subscription.title.delete"/></title>
</logic:equal>
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Edit">
<title><bean:message key="subscription.title.edit"/></title>
</logic:equal>
<html:base/>
</head>
<body bgcolor="white">
<html:errors/>
<html:form action="/SaveSubscription" focus="host">
<html:hidden property="task"/>
<table border="0" width="100%">
<tr>
<th align="right">
<bean:message key="prompt.username"/>:
</th>
<td align="left">
<bean:write name="user" property="username" filter="true"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.mailHostname"/>:
</th>
<td align="left">
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Create">
<html:text property="host" size="50"/>
</logic:equal>
<logic:notEqual name="SubscriptionForm" property="task"
scope="request" value="Create">
<html:hidden property="host" write="true"/>
</logic:notEqual>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.mailUsername"/>:
</th>
<td align="left">
<html:text property="username" size="50"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.mailPassword"/>:
</th>
<td align="left">
<html:password property="password" size="50"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.mailServerType"/>:
</th>
<td align="left">
<html:select property="type">
<html:options collection="serverTypes" property="value"
labelProperty="label"/>
</html:select>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.autoConnect"/>:
</th>
<td align="left">
<html:checkbox property="autoConnect"/>
</td>
</tr>
<tr>
<td align="right">
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Create">
<html:submit property="DO_SUBMIT">
<bean:message key="button.save"/>
</html:submit>
</logic:equal>
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Delete">
<html:submit property="DO_SUBMIT">
<bean:message key="button.confirm"/>
</html:submit>
</logic:equal>
<logic:equal name="SubscriptionForm" property="task"
scope="request" value="Edit">
<html:submit property="DO_SUBMIT">
<bean:message key="button.save"/>
</html:submit>
</logic:equal>
</td>
<td align="left">
<logic:notEqual name="SubscriptionForm" property="task"
scope="request" value="Delete">
<html:reset property="DO_RESET">
<bean:message key="button.reset"/>
</html:reset>
</logic:notEqual>
<html:cancel>
<bean:message key="button.cancel"/>
</html:cancel>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?