⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendmail.jsp

📁 struts hibernate spring实现新闻发布系统含说明文档
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>

<%@ 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"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>发送邮件</title>
		<link href="styles.css" rel="stylesheet" type="text/css" />
	</head>
	<style type="text/css">
/* CSS Document */
body {
	font: normal 11px auto "Trebuchet MS", Verdana, Arial, Helvetica,
		sans-serif;
	color: #4f6b72;
	background: #E6EAE9;
}

a {
	color: #c75f3e;
}

#mytable {
	width: 700px;
	padding: 0;
	margin: 0;
	text-align: center;
}

caption {
	padding: 0 0 5px 0;
	width: 700px;
	font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	text-align: right;
}

th {
	font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	border-top: 1px solid #C1DAD7;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: left;
	padding: 6px 6px 6px 12px;
	background: #CAE8EA url(images/bg_header.jpg) no-repeat;
}

th.nobg {
	border-top: 0;
	border-left: 0;
	border-right: 1px solid #C1DAD7;
	background: none;
}

td {
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	background: #fff;
	font-size: 11px;
	padding: 6px 6px 6px 12px;
	color: #4f6b72;
}

td.alt {
	background: #F5FAFA;
	color: #797268;
}

th.spec {
	border-left: 1px solid #C1DAD7;
	border-top: 0;
	background: #fff url(images/bullet1.gif) no-repeat;
	font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

th.specalt {
	border-left: 1px solid #C1DAD7;
	border-top: 0;
	background: #f5fafa url(images/bullet2.gif) no-repeat;
	font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #797268;
}

/*---------for IE 5.x bug*/
html>body td {
	font-size: 11px;
}
</style>
	<body>
	<html:form action="/sendMail">
			<logic:present name="user" scope="session">
				<table id="mytable" cellspacing="0" align="center" >
					<caption>
					</caption>
					<tr>
						<th scope="col">
							发件人
						</th>

						<th scope="col">
							<html:select property="from">
								<html:option value="1">
									<bean:write name="user" property="email" />
								</html:option>
							</html:select>
							<html:errors property="from" />
						</th>
					</tr>
					<tr>
						<th scope="col">
							收件人
						</th>

						<th scope="col">
							<html:text property="to" value="java01bnews@163.com"
								readonly="true" />
							<html:errors property="to" />
						</th>
					</tr>
					<tr>
						<th scope="col">
							标题
						</th>

						<th scope="col">
							<html:text property="title" />
							<html:errors property="title" />
						</th>
					</tr>
					<tr>
						<th scope="col">
							内容
						</th>

						<th scope="col">
							<html:textarea property="content" rows="20" cols="80"/>
							<html:errors property="content" />
						</th>
					</tr>
					<tr>
						<th scope="col" colspan="2">
							<html:submit value="发送"/>
							<html:reset value="取消"/>
						</th>
					</tr>
				</table>
			</logic:present>
		</html:form>
</body>
</html>
	

⌨️ 快捷键说明

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