Subject: RE: Urgent!How to config Uploadhandler using domtags?
Thank you very much for quick response Steve!Here is the exactly system environment we are in :
1.Domino Server : Version: Release 6.0|September 26, 2002
2.Web Server:Apache Tomcat version 4.1.24
3.Microsoft IE: version 6.0 sp2
4.Microsoft WindowXP sp1
Yeah! you 're quite right we have the Tomcat and Domino Server on the same box to make a local session access.
I 've set the programability restriction’s run unrestricted methods and operations to the user id running my web app and set the IE security level to low allowing activeX to run.
Furthermore ,I 've added the uploadhandler servlet configuration to my web.xml ,the following is my entire web.xml:
<?xml version="1.0" encoding="UTF-8"?>
ciecc
<servlet-name>UploadHandler</servlet-name>
<display-name>UploadHandler</display-name>
<servlet-class>lotus.domino.upload.UploadHandler</servlet-class>
<init-param>
<param-name>enablePooling</param-name>
<param-value>false</param-value>
</init-param>
<servlet-name>UploadHandler</servlet-name>
<url-pattern>/UploadHandler</url-pattern>
<session-timeout>1</session-timeout>
<taglib-uri>domtags.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/domtags.tld</taglib-location>
<taglib-uri>domutil.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/domutil.tld</taglib-location>
I 've also created a directory in my webapp called exactly the same name as “attachments” as you did. Now I know this
directory name will be served as the value of codebase atttribute in the attachments tags.
However , the upload ActiveX control was still invisible!
I’ve checked the source code of the page found that the codebase value of the attachments tag seemed to be incorrect.
Here is the code snippets of the page with no attachment ActiveX control :
…
<object
classid=“clsid:3BFFE033-BF43-11d5-A271-00A024A51325” name=“Uploadcontrol”
********codebase=“http://deity:8080/iNotes6.cab#Version="6,0,2,0"” *********//Wrong codebase value??
width=“100%”
height=“200” id=“Uploadcontrol” >
…
Note that the codes between “*” ie.“http://deity:8080” is the root directory of Tomcat. The iNotes6.cab was
put to the directory called “attachments” in my webapps. I think the codebase value should be like this “http://deity:8080/mywebapp/attachments/iNotes6.cab#Version="6,0,2,0"”
Is that correct?
The deadline is approaching ,I am looking forward to your respones soon.
Have a nice day!