亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標題: Resin和IIS的問題,困擾了很久了,請指教。! [打印本頁]

作者: kingxl    時間: 2003-06-05 17:58
標題: Resin和IIS的問題,困擾了很久了,請指教。!
我的Resin顯示:
網(wǎng)頁無法顯示
網(wǎng)頁地址不正確,因此您要尋找的網(wǎng)頁無法顯示。  

--------------------------------------------------------------------------------

請嘗試下列操作:

如果您在“地址”欄中鍵入了網(wǎng)頁地址,請檢查地址輸入是否正確。

打開 192.168.2.51 主頁,尋找指向所需信息的鏈接。
HTTP 405 - 資源被禁止
Internet 信息服務

192.168.2.51是我的IP

我的安裝:
JAVA_HOME: D:\j2sdk1.4.1_02
resin: D:\resin-3.0.1-beta
CLASSPATH: D:\j2sdk1.4.1_02\lib\tools.jar;D:\j2sdk1.4.1_02\lib\dt.jar
path: d:\j2sdk1.4.1_02\bin



在IIS的默認WEB站點里
1、主目錄為:E:\EAI\yh-9500\page
2、添加scripts虛擬目錄,指向E:\EAI\yh-9500\page\scripts
3、ISAPI篩選器的可執(zhí)行程序:E:\EAI\yh-9500\page\scripts\isapi_srun.dll(該文件存在,是從resin目錄中拷貝過來的)
4、重新啟動IIS后篩選器的狀態(tài)為已裝載,優(yōu)先級為未知
5、添加jspsmartupload虛擬目錄,指向E:\EAI\yh-9500\page\jspsmartupload(使用jspsmart 的bean要用的)


我的jsp文件放在:E:\EAI\yh-9500\page==\
\jspsamrtupload\upload.htm
\jspsmartupload\jsp\upload.jsp
\WEB_INF\classes\servletUpload.class
\WEB_INF\classes\servletUpload.java
\WEB_INF\classes\web.xml
\WEB-INF\classes\com\jspsmart\upload\SmartUpload.class


我的resin.conf為:
<caucho.com>;
    <http-server app-dir='E:\EAI\yh-9500\page' class-update-interval='2'>;
    <srun port='6802'/>;
    <!-- automatically compile Java in WEB-INF -->;
    <classpath id='WEB-INF/classes' source='WEB-INF/classes'/>;

    <error-log id='log/error.log'/>;
  </http-server>;
</caucho.com>;

我的web.xml文件為:
<web-app xmlns="http://caucho.com/ns/resin">;

  <servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>;
  <path-mapping url-pattern='/upload/*' real-path='E:\EAI\yh-9500\page\jspsmartupload\upload'/>;

</web-app>;

我的upload.html文件為:
<HTML>;

<BODY BGCOLOR="6BA7D8">;

<H1>;文件上傳</H1>;
<HR>;

<FORM METHOD="OST" ACTION="jsp/upload.jsp" ENCTYPE="multipart/form-data">;
   <font face="宋體">;文件名稱:&amp; </font>;
   <font face="宋體">;<input TYPE="file" name="FILE1" SIZE="50">;</font>;
   <div align="left">;<p>;<font face="Verdana">;文件類型:&amp; </font>;
   <font face="宋體">;<SELECT name="mySelect" >;<OPTION value="XXX">;XXX</OPTION>;<OPTION value="YYY">;YYY</OPTION>;<OPTION value="ZZZ">;ZZZ</OPTION>;<OPTION value="WWWWWW">;WWWWWW</OPTION>;</SELECT>;<br>;</font>;
   <br/>;
   <div align="left">;<small>;<INPUT TYPE="SUBMIT" VALUE="上傳文件">;
</FORM>;

</BODY>;
</HTML>;

我的upload.jsp文件為:
<%@ page language="java" import="com.jspsmart.upload.*"%>;
<%@ page contentType="text/html;charset=GB2312" %>;
<jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />;

<HTML>;

<BODY BGCOLOR="6BA7D8">;

<H1>;文件上傳</H1>;
<HR>;

<%
       
        // Variables
        int count=0;        

        // Initialization
        mySmartUpload.initialize(pageContext);

        // Upload       
        mySmartUpload.upload();

        // Select each file
       
                // Retreive the current file
                com.jspsmart.upload.File myFile = mySmartUpload.getFiles().getFile(0);
               
                 String[] values = mySmartUpload.getRequest().getParameterValues("mySelect";
                       

                // Save it only if this file exists
                if (!myFile.isMissing()) {

                        // Save the files with its original names in a virtual path of the web server      
                        myFile.saveAs("E:\\EAI\\yh-9500\\page\\upload\\" +myFile.getFileName(), mySmartUpload.PHYSICAL);
                        // myFile.saveAs("/upload/" + myFile.getFileName(), mySmartUpload.SAVE_VIRTUAL);

                        // sample with a physical path
                        // myFile.saveAs("c:\\temp\\" + myFile.getFileName(), mySmartUpload.SAVE_PHYSICAL);

                        //  Display the properties of the current file
                        out.println("FieldName = " + myFile.getFieldName() + "
;";
                        out.println("Size = " + myFile.getSize() + "
;";
                        out.println("FileName = " + myFile.getFileName() + "
;";
                        out.println("FileExt = " + myFile.getFileExt() + "
;";
                        out.println("FilePathName = " + myFile.getFilePathName() + "
;";
                        for(int i = 0; i < values.length; i++)
                        {
                          out.print("FileType = ";
                          out.println(values + "
;";
                        }

                        count ++;

                }

        //}

        // Display the number of files which could be uploaded
        out.println("
;" + mySmartUpload.getFiles().getCount() + " files could be uploaded.
;";

        // Display the number of files uploaded
        out.println(count + " file(s) uploaded.";


%>;
</BODY>;
</HTML>;


我的操作系統(tǒng):Win200pro

我的輸入為:http://192.168.2.51/jspsmartupload/upload.htm
選擇一個文件點擊上傳按鈕后地址為:http://192.168.2.51/jspsmartupload/jsp/upload.jsp

最后就出現(xiàn)前面所說的問題了。


請高手指點迷津,在下不勝感激。!




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2