实例大全
源代码在线查看: _0002fsrc_0002fmaildemo_0002ejspmaildemo_jsp_3.java
软件大小: |
717 K |
上传用户: |
black001 |
|
|
关键词: |
|
下载地址: |
免注册下载 普通下载
|
|
package src;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;
public class _0002fsrc_0002fMailDemo_0002ejspMailDemo_jsp_3 extends HttpJspBase {
// begin [file="E:\\src\\MailDemo.jsp";from=(0,0);to=(0,77)]
// end
static {
}
public _0002fsrc_0002fMailDemo_0002ejspMailDemo_jsp_3( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws JasperException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=8859_1");
pageContext = _jspxFactory.getPageContext(this, request, response, "", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// begin [file="E:\\src\\MailDemo.jsp";from=(0,0);to=(0,77)]
maildemo.receiveMail ReceiveMail = null;
boolean _jspx_specialReceiveMail = false;
synchronized (session) {
ReceiveMail= (maildemo.receiveMail)
pageContext.getAttribute("ReceiveMail",PageContext.SESSION_SCOPE);
if ( ReceiveMail == null ) {
_jspx_specialReceiveMail = true;
try {
ReceiveMail = (maildemo.receiveMail) Beans.instantiate(getClassLoader(), "maildemo.receiveMail");
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"maildemo.receiveMail");
}
pageContext.setAttribute("ReceiveMail", ReceiveMail, PageContext.SESSION_SCOPE);
}
}
if(_jspx_specialReceiveMail == true) {
// end
// begin [file="E:\\src\\MailDemo.jsp";from=(0,0);to=(0,77)]
}
// end
// HTML // begin [file="E:\\src\\MailDemo.jsp";from=(0,77);to=(1,0)]
out.write("\r\n"); // end
// begin [file="E:\\src\\MailDemo.jsp";from=(1,0);to=(1,51)]
JspRuntimeLibrary.introspect(pageContext.findAttribute("ReceiveMail"), request);
// end
// HTML // begin [file="E:\\src\\MailDemo.jsp";from=(1,51);to=(29,0)]
out.write("\r\n\r\n\r\n\r\nMailDemo\r\n\r\n\r\n\r\n\r\nJBuilder Generated JSP\r\n\r\n\r\nEmail pop3Server:\r\n\r\n \r\n Your Account:\r\n \r\n \r\n Your Password:\r\n \r\n \r\n\r\n\r\nbean0\r\n\r\n\r\n\r\n\r\n"); // end
} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
_jspxFactory.releasePageContext(pageContext);
}
}
}