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

📄 __sample1.java

📁 税务端受理系统java版 增值税网上认证
💻 JAVA
字号:
/* compiled from JSP: /sample1.jsp
*
* This code was automatically generated at 14:14:27 on 2005-11-23
* 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 com.jspsmart.upload.*; //[ /sample1.jsp; Line: 2]

// 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 14:14:27 on 2005-11-23
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2005 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __sample1
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
    
    // 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("/sample1.jsp", 1066100906000L, "WebLogic Server 7.0  Thu Apr 25 17:16:22 PDT 2002 180709 ")) return true;        return false;    }        public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {        java.io.File f = null;        long lastModWhenBuilt = 0L;        if (sci.isResourceStale("/sample1.jsp", 1066100906000L, "WebLogic Server 7.0  Thu Apr 25 17:16:22 PDT 2002 180709 ")) 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");            com.jspsmart.upload.SmartUpload mySmartUpload = null; //[ /sample1.jsp; Line: 3]            mySmartUpload = (com.jspsmart.upload.SmartUpload)pageContext.getAttribute("mySmartUpload"); //[ /sample1.jsp; Line: 3]            if (mySmartUpload == null) { // begin 'mySmartUpload' instantiation block... //[ /sample1.jsp; Line: 3]                { // Don't need to synchronize on page scope //[ /sample1.jsp; Line: 3]                    mySmartUpload = (com.jspsmart.upload.SmartUpload)pageContext.getAttribute("mySmartUpload"); //[ /sample1.jsp; Line: 3]                    if (mySmartUpload == null) { // begin 'mySmartUpload' synchronized instantiation block... //[ /sample1.jsp; Line: 3]                        mySmartUpload = new com.jspsmart.upload.SmartUpload(); //[ /sample1.jsp; Line: 3]                        pageContext.setAttribute("mySmartUpload", mySmartUpload); //[ /sample1.jsp; Line: 3]                    } // end synchronized bean instantiation block... //[ /sample1.jsp; Line: 3]                } // end synchronized bean scope block... //[ /sample1.jsp; Line: 3]            } // end bean instantiation block... //[ /sample1.jsp; Line: 3]            out.print("\r\n\r\n<HTML>\r\n<BODY BGCOLOR=\"white\">\r\n<H1>上传文件成功</H1>\r\n<HR>\r\n\r\n");            //[ /sample1.jsp; Line: 10]            //[ /sample1.jsp; Line: 11]            // Variables //[ /sample1.jsp; Line: 12]            int count=0;         //[ /sample1.jsp; Line: 13]            //[ /sample1.jsp; Line: 14]            // Initialization //[ /sample1.jsp; Line: 15]            mySmartUpload.initialize(pageContext); //[ /sample1.jsp; Line: 16]            //[ /sample1.jsp; Line: 17]            mySmartUpload.setTotalMaxFileSize(100000); //[ /sample1.jsp; Line: 18]            //[ /sample1.jsp; Line: 19]            // Upload	 //[ /sample1.jsp; Line: 20]            mySmartUpload.upload(); //[ /sample1.jsp; Line: 21]            //[ /sample1.jsp; Line: 22]            try { //[ /sample1.jsp; Line: 23]                //[ /sample1.jsp; Line: 24]                // Save the files with their original names in the virtual path "/upload" //[ /sample1.jsp; Line: 25]                // if it doesn't exist try to save in the physical path "/upload" //[ /sample1.jsp; Line: 26]                count = mySmartUpload.save("/filedat"); //[ /sample1.jsp; Line: 27]                //[ /sample1.jsp; Line: 28]                // Save the files with their original names in the virtual path "/upload" //[ /sample1.jsp; Line: 29]                // count = mySmartUpload.save("/filedat", mySmartUpload.SAVE_VIRTUAL); //[ /sample1.jsp; Line: 30]                //[ /sample1.jsp; Line: 31]                // Display the number of files uploaded  //[ /sample1.jsp; Line: 32]                out.println(count + " file(s) uploaded."); //[ /sample1.jsp; Line: 33]                //[ /sample1.jsp; Line: 34]            } catch (Exception e) {  //[ /sample1.jsp; Line: 35]                out.println(e.toString()); //[ /sample1.jsp; Line: 36]            } //[ /sample1.jsp; Line: 37]            //[ /sample1.jsp; Line: 38]            out.print("\r\n\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 + -