📄 _holdrec__jsp.java
字号:
/*
* JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
*/
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.io.*;
public class _holdrec__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, "/", true, 8192, true);
javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.http.HttpSession session = pageContext.getSession();
javax.servlet.ServletContext application = pageContext.getServletContext();
response.setContentType("text/html; charset=gb2312");
request.setCharacterEncoding("GB2312");
try {
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
request.setCharacterEncoding("gb2312");
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
Store store=null;
Folder folder=null;
Properties props =new Properties();
Session s=Session.getInstance(props,null);
store=s.getStore("pop3");
store.connect(popserver, username, password);
folder = store.getDefaultFolder();
folder = folder.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
Message[] msgs = folder.getMessages();
for (int msgNum = 0; msgNum < msgs.length; msgNum++)
{
InternetAddress[] from=(InternetAddress[])msgs[msgNum].getFrom();
InternetAddress[] to=(InternetAddress[])msgs[msgNum].getRecipients(Message.RecipientType.TO);
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
out.print((msgNum+1));
pageContext.write(_jsp_string3, 0, _jsp_string3.length);
out.print((from[0].getAddress()));
pageContext.write(_jsp_string4, 0, _jsp_string4.length);
out.print((msgs[msgNum].getSentDate()));
pageContext.write(_jsp_string5, 0, _jsp_string5.length);
out.print((msgs[msgNum].getSubject()));
pageContext.write(_jsp_string6, 0, _jsp_string6.length);
out.print((msgs[msgNum].getSize()));
pageContext.write(_jsp_string7, 0, _jsp_string7.length);
out.print((msgs[msgNum].getContent()));
pageContext.write(_jsp_string8, 0, _jsp_string8.length);
}
folder.close(false);
store.close();
pageContext.write(_jsp_string9, 0, _jsp_string9.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != 2057024144)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Depend depend;
depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
mergePath.addClassPath(getClass().getClassLoader());
_caucho_line_map = new com.caucho.java.LineMap("_holdrec__jsp.java", "/holdrec.jsp");
_caucho_line_map.add(6, 1);
_caucho_line_map.add(1, 32);
_caucho_line_map.add(15, 40);
_caucho_line_map.add(33, 59);
_caucho_line_map.add(34, 61);
_caucho_line_map.add(35, 63);
_caucho_line_map.add(36, 65);
_caucho_line_map.add(39, 69);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/E:/mailsite/holdrec.jsp"), 1100520333937L, 1840L);
_caucho_depends.add(depend);
}
private static byte []_jsp_string5;
private static byte []_jsp_string1;
private static byte []_jsp_string3;
private static byte []_jsp_string7;
private static byte []_jsp_string9;
private static byte []_jsp_string8;
private static byte []_jsp_string2;
private static byte []_jsp_string0;
private static byte []_jsp_string6;
private static byte []_jsp_string4;
static {
try {
_jsp_string5 = "</td></tr>\r\n<tr><td align=\"center\">主题</td><td align=\"left\">".getBytes("GB2312");
_jsp_string1 = "\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>收件箱</title>\r\n</head>\r\n<body>\r\n<table align=\"center\" width=\"100%\" >\r\n".getBytes("GB2312");
_jsp_string3 = "封邮件:</font></td></tr>\r\n<tr><td align=\"center\" >发件人</td><td align=\"left\">".getBytes("GB2312");
_jsp_string7 = "</td></tr>\r\n<tr><td align=\"center\">内容</td><td>\r\n<font color=\"#FF0000\"size=\"+1\">".getBytes("GB2312");
_jsp_string9 = "\r\n</table>\r\n<p><a href=\"index.jsp\">返回主页</a></p>\r\n<p><a href=\"send.html\">继续写信</a></p>\r\n</body>\r\n</html>".getBytes("GB2312");
_jsp_string8 = "</font></td></tr>\r\n ".getBytes("GB2312");
_jsp_string2 = "\r\n<tr><td align=\"center\" width=\"18%\" >\r\n<font face=\"华文楷体\" size=\"+1\">这是第".getBytes("GB2312");
_jsp_string0 = "\r\n".getBytes("GB2312");
_jsp_string6 = "</td></tr>\r\n<tr><td align=\"center\">大小(字节)</td><td align=\"left\">".getBytes("GB2312");
_jsp_string4 = "</td></tr>\r\n<tr><td align=\"center\">时间</td><td align=\"left\">".getBytes("GB2312");
} catch (java.io.UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -