> Hi, i have an html page that has a javascript function that opens an outlook > mail window .the function is pretty basic: > > function OpenOutlookDoc() > {try{ > var outlookApp = new ActiveXObject("Outlook.Application"); > var nameSpace = outlookApp.getNameSpace("MAPI"); > mailFolder = nameSpace.getDefaultFolder(6); > mailItem = mailFolder.Items.add('IPM.Note.FormA'); > mailItem.Subject="a subject test"; > mailItem.To = "[EMAIL PROTECTED]"; > mailItem.HTMLBody = "<b>bold</b>"; > mailItem.display (0); > }catch(e){ > alert(e); > // act on any error that you get > }} > > if I run the file locally, with the url looking like: file://C:/....things > are ok, page works, if I copy > the html page in one of my projects and run int like > localhost:8080/project/file.html I get an [Object error] alert......i > remember reading somewhere > about some problems using Active -x in tomcat.
First of all, this is entirely client side stuff, so it should not make any difference if it is deployed on Tomcat, Apache, WebSphere or IIS. In this script, there is no interaction with the server, whatsoever, so, it is not Tomcat related in any way. You should give us more info on the "Object error" you're getting, but I must warn you - your problems are IE related and have nothing to do with TC, so you may get help, but then again, you may not. Nix. ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping