JSPSMARTUPLOAD : DOCUMENTATION |
Installation with Resin Last update: 05/24/2000 © 2000 Advantys. All rights reserved. |
JspSmartUpload requires JDK 1.2.2.
JDK 1.2.2 is available for free download from Sun. JDK 1.2.2 for WindowsNote: You can install it in any directory (default is C:\jdk1.2.2).
Resin is available for download from Caucho. Resin 1.1 for Windows
You can extract the downloaded zip file in any directory (default is C:\Resin1.1). You will run Resin from this directory.
1. Run setup.exe located in the directory C:\resin1.1\bin
Note: You must stop IIS service before running setup.exe. To do so, type the command: net stop iisadmin
Enter the path to Resin (C:\resin1.1) and the path to IIS scripts directory (typically C:\InetPub\scripts)
2. Create a C:\resin1.1\conf\resin.conf file (rename the existing one) containing:
<caucho.com>
<http-server>
<host id='web_server_IP_address'>
<app-dir>C:\InetPub\Your_Site</app-dir>
<error-log id='C:\InetPub\Your_Site\error.log'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>
<path-mapping url-pattern='/upload/*' real-path='C:\InetPub\Your_Site\jspsmartupload\upload'/>
</host>
<classpath id='WEB-INF/classes' source='WEB-INF/classes'/>
</http-server>
</caucho.com>All paths are given assuming you web site is located in C:\InetPub\Your_Site, change them if needed.
3. You may need to change you CLASSPATH in order to have C:\jdk1.2.2\lib\tools.jar in it
4. In IIS management console, create a virtual directory named scripts which physical path is the directory where Resin put the iis_srun.dll file (typically C:\InetPub\scripts) and allow Execute on this virtual directory.
In the properties of your site, in the Home directory tab, click on the Configuration button, then on the Add button.
Choose iis_srun.dll as the Executable (typically in C:\InetPub\scripts), and enter .jsp in the Extention field.
Step 3 : Install jspSmartUpload
Assuming your web site is located in C:\InetPub\Your_Site
C:\InetPub\Your_Site Site root C:\InetPub\Your_Site\jspsmartupload\ Static pages (html) C:\InetPub\Your_Site\jspsmartupload\jsp\ Dynamic pages (jsp) C:\InetPub\Your_Site\jspsmartupload\upload Uploaded files C:\InetPub\Your_Site\WEB-INF\classes jspSmartUpload classes 1. Copy the files located in jspsmartupload\*.html in C:\InetPub\Your_Site\jspsmartupload
2. Copy the files located in jspsmartupload\jsp\*.jsp in C:\InetPub\Your_Site\jspsmartupload\jsp
3. Copy the files located in jspsmartupload\Web-inf\classes in C:\InetPub\Your_Site\WEB-INF\classes4. In the IIS management console, create a virtual directory named jspsmartupload which physical path is C:\InetPub\Your_Site\jspsmartupload
Start your web server from the IIS management console
Start resin by running srun.exe located in C:\resin1.1\binType the following URL in your browser:
http://IP_address_of_your_web_server/jspsmartupload/default.htm
© 2000 Advantys. All rights reserved. |