📄 messages.jsp
字号:
<%@page contentType="text/html"%>
<%@ page pageEncoding="utf-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.STYLE6 {color: #CCFF99; font-weight: bold; font-size: 12px; }
.STYLE10 {color: #CCFF99}
-->
</style>
<script language="javascript">
function HtmlEncoder(text)
{
if ( typeof( text ) != "string" )
text = text.toString() ;
text = text.replace(
/&/g, "&").replace(
/"/g, """).replace(
/</g, "<").replace(
/>/g, ">");
return text;
}
function GoPage(url)
{
document.location=HtmlEncoder(url);
}
</script>
</head>
<body>
<table width="380" border="0" align="center" cellspacing="0">
<tr bgcolor="#3366CC">
<td height="23" align="center"><span class="STYLE6">操作结果提示</span></td>
</tr>
<%
request.setCharacterEncoding("utf-8");
String mes=request.getParameter("MSG");
//mes=new String(mes.getBytes("gb2312"));/////////////////
String rtp=java.net.URLDecoder.decode(request.getParameter("ReturnPage"),"utf-8");
%>
<tr bgcolor="#006699">
<td height="15" align="center"></td>
</tr>
<tr bgcolor="#006699">
<td align="center"><span class="STYLE10">
<script>document.write(HtmlEncoder('<%=mes%>'));</script>
</span></td>
</tr>
<tr>
<td height="15" align="center" bgcolor="#33eeff"></td>
</tr>
<tr>
<td align="center"><p><a href="javascript:GoPage('<%=rtp%>');">返回</a></p></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -