Urgent!How to config Uploadhandler using domtags?

I want to use domtags to upload attachment in jsps .As far as I know ,uploadhandler must be correctly configured in web apps.Does uploader handler reside in inotes.cab or inres6_en.dll?

I 've seen the the demo provided by ibm about

lotusphere ,however it seems that there isn’t any clue about configuring uploadhandler .

When I am running the demo ,the inotes attachment ActiveX control didn’t deplay normally ,it shows a white rectangle with a red ‘x’ on the top left corner!

Could anyone give a detailed decriptions on this issue?

Thanks in advance!

Subject: Urgent!How to config Uploadhandler using domtags?

This is very dependent on the version of the JSP tags you are using. What version of Domino are you using?

From you previous posts I know you are running tomcat, and using a local session to access your nsf.

  1. In your Domino Directory, your server’s Security tab, did you set the Programability Restriction’s Run Unrestricted Methods and Operations to the user id running you web app? You don’t need this if using remote iiop sessions.

  2. Add this to your web.xml:

     <servlet-name>UploadHandler</servlet-name>
    
     <display-name>UploadHandler</display-name>
    
     <servlet-class>lotus.domino.upload.UploadHandler</servlet-class>
    
     <servlet-name>UploadHandler</servlet-name>
    
     <url-pattern>/UploadHandler</url-pattern>
    
  3. create a directory in your web app - in the sample app you have, I called that directory “attachments”. That directory name is the value of the codepath attribute to use on the attachments tag. Copy iNotes6.cab to that directory - it contains the activeX control that will be downloaded to your MS IE browser, assuming that you set the security options in IE to load and run activeX controls.

  4. This won’t work in portal server. This activeX implementation can only work in MS IE browsers.

Hope that helps.

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!

Subject: RE: Urgent!How to config Uploadhandler using domtags?

u can try follow code! if u success that tell me pls.thanks.

notice:“6,0,22,0”<>“6,0,2,0”

i use inotes control for it,but wrong when i save the attachments .

Subject: RE: Urgent!How to config Uploadhandler using domtags?

can you describe what is wrong when you save the attachments - error messages?

If you can post your jsp, maybe I can help.

Subject: RE: Urgent!How to config Uploadhandler using domtags?

The Domino JSP tag library was first released in Domino 6.0 - what you are running → Release 6.0|September 26, 2002.

You need to upgrade to either 6.03 or 6.5.1, or if you can wait, 6.0.4 or 6.5.2 will be available soon. That will give you access to bug fixes you need. The codepath attribute does not work in earlier versions.

Sorry I don’t have better news.