📄 __test.java
字号:
/* compiled from JSP: /test.jsp
*
* This code was automatically generated at 22:13:11 on 2004-4-19
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports
import java.sql.*; //[ /test.jsp; Line: 2]import javax.sql.*; //[ /test.jsp; Line: 3]
// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client (if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's implementation class (i.e., 'this')
/**
* This code was automatically generated at 22:13:11 on 2004-4-19
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __test
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
private int intResult = 0; //[ /test.jsp; Line: 10] // StaleIndicator interface public boolean _isStale() { weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext()); java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/test.jsp", 1082383988000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true; return false; } public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) { java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/test.jsp", 1082383988000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true; return false; }
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
{
// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application = config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol
Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext = javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
response.setHeader("Content-Type", "text/html; charset=GBK"); out = pageContext.getOut(); JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block response.setContentType("text/html; charset=GBK"); out.print("\r\n"); out.print("\r\n"); out.print("\r\n<html>\r\n<head>\r\n<title>\r\ntest\r\n</title>\r\n</head>\r\n"); out.print("\r\n<body bgcolor=\"#ffffff\">\r\n<h1>\r\nJBuilder Generated JSP\r\n</h1>\r\n"); //[ /test.jsp; Line: 15] try{ //[ /test.jsp; Line: 16] // Class.forName("oracle.jdbc.driver.OracleDriver"); //[ /test.jsp; Line: 17] // String url = "jdbc:oracle:thin:@slight:1521:LOCAL"; //[ /test.jsp; Line: 18] // String strUser = "eshop"; //[ /test.jsp; Line: 19] // String strPassword = "eshop"; //[ /test.jsp; Line: 20] // Connection con = DriverManager.getConnection(url,strUser,strPassword); //[ /test.jsp; Line: 21] // Statement st = con.createStatement(); //[ /test.jsp; Line: 22] // ResultSet rs = st.executeQuery("select * from Product"); //[ /test.jsp; Line: 23] // while(rs.next()){ //[ /test.jsp; Line: 24] // System.out.println("the resultset is : " + rs.getString("Product_Name")); //[ /test.jsp; Line: 25] // } //[ /test.jsp; Line: 26] // String strMsg = "哈哈"; //[ /test.jsp; Line: 27] // out.println("哈哈,测试成功了!"); //[ /test.jsp; Line: 28] // double db1 = 3.0; //[ /test.jsp; Line: 29] // double db2 = 2; //[ /test.jsp; Line: 30] // out.println("**********" + String.valueOf(4/2)); //[ /test.jsp; Line: 31] // out.println("*************" + String.valueOf((double)4/2)); //[ /test.jsp; Line: 32] // out.println("*************" + (3/2 == (double)3/2)); //[ /test.jsp; Line: 33] }catch(Exception e){ //[ /test.jsp; Line: 34] //错误处理 //[ /test.jsp; Line: 35] throw (e); //[ /test.jsp; Line: 36] } //[ /test.jsp; Line: 37] //[ /test.jsp; Line: 38] out.print("\r\n<form name=\"dataform\" action=\"test1.jsp?msg=呵呵我不知道\" method=\"post\">\r\n <input type=\"hidden\" name=\"msg1\" value=\"哈哈\">\r\n <input type=\"button\" name=\"button\" value=\"通过post提交\" onclick=\"document.dataform.submit();\">\r\n</form>\r\n</body>\r\n</html>\r\n"); } catch (Throwable __ee) { while (out != null && out != _originalOut) out = pageContext.popBody(); ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee); }
//before final close brace...
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -