sendmail.jsp

来自「一个java写的加密算法」· JSP 代码 · 共 82 行

JSP
82
字号
<%-- Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved. Use is subject to license terms.--%><%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %><fmt:setBundle basename="LocalStrings"/><html><head><title><fmt:message key="sendmail.jsp.title"/></title></head><body bgcolor="white"><p><fmt:message key="sendmail.jsp.overview"/></p><ul><li><fmt:message key="sendmail.jsp.defaultconfig"/></li><li><fmt:message key="sendmail.jsp.applicationlogic"/></li><li><fmt:message key="sendmail.jsp.allfields"/></li></ul><%    if (session.getAttribute("mailto") == null)	session.setAttribute("mailto", "");    if (session.getAttribute("mailfrom") == null)	session.setAttribute("mailfrom", "joe@localhost");    if (session.getAttribute("mailsubject") == null)	session.setAttribute("mailsubject", "What's up");%><form method="POST" action="mail"><table>  <tr>    <th align="center" colspan="2">      <fmt:message key="sendmail.jsp.entermessage"/>    </th>  </tr>  <tr>    <th align="right"><fmt:message key="sendmail.jsp.from"/></th>    <td align="left">      <input type="text" name="mailfrom" size="60" value="<%= session.getAttribute("mailfrom") %>">    </td>  </tr>  <tr>    <th align="right"><fmt:message key="sendmail.jsp.to"/></th>    <td align="left">      <input type="text" name="mailto" size="60" value="<%= session.getAttribute("mailto") %>">    </td>  </tr>  <tr>    <th align="right"><fmt:message key="sendmail.jsp.subject"/></th>    <td align="left">      <input type="text" name="mailsubject" size="60" value="<%= session.getAttribute("mailsubject") %>">    </td>  </tr>  <tr>    <td colspan="2">      <textarea name="mailcontent" rows="10" cols="80">      </textarea>    </td>   </tr>  <tr>    <td align="right">      <input type="submit" value="<fmt:message key="sendmail.jsp.sendbutton"/>">    </td>    <td align="left">      <input type="reset" value="<fmt:message key="sendmail.jsp.resetbutton"/>">    </td>  </tr></table></form></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?