Lotus Domino Java Toolkit

I’m using the plugin in WSAD to integrate a web application with an number of existing Lotus Domino databases and have a couple of issues, mainly concerning the handling of rich text. I apologise in advance as I’m much more conversant with the java/WebSphere side of this than the domino aspects.

My first problem concerns the content of the rich text field in terms of fonts/tables etc. Basically the idea is that the presentation on the web should be handled in the jsp in a common way. The only way I can think of doing this is by stripping out font tags, background images, colours etc (although the tables will have to be left alone)). I assume I would have to do this bespokely e.g. by devloping my own tag which can be enclosed in a ‘richtext’ tag (haven’t figured out which tag I need to use yet) and perform the parsing.

My second problem concerns any links which may be included in the documents. Ultimately the application is to run on portal server. As such I will need to take the link and a) determine the portlet (and the jsp within that portlet) in which the document needs to be displayed, and b) pass the document url in a format which this portlet will understand. I assume there is a way of detecting links in rich text. Can I use a tag to determine the form used by the document. If so I should be able to make some decision based on this. Further I assume I will need to break the url up into more meaningful pieces so that I can use the pieces in the form tag e.g.

<domtags:form name=“myForm” dbname=“names.nsf” dbserver=“CN=xxx/O=yyy/C=zzz” host=“aaaa” schema=“bbb”>

Is there a method or tag which will do this or do I need to break this up myself (which doesn’t look easy given the nature of these links)

Anyone who could provide some pointers ?

Also is there anyone out there with any experience of portalising domino databases, who could let me know the sorts of things to expect ?

Subject: Lotus Domino Java Toolkit

The Domino JSP custom tag library has a richtext tag that you might find useful - it sets up Domino’s richtext edit control, which you can add to your web app by copying the files in lotus\notes\data\domino\java\editor.* and editctrl directory.

You can read about it in the designer 6.5 help database, or pull down the sample apps from a Lotusphere 2004 presentation here - http://www-10.lotus.com/ldd/sandbox.nsf/ViewByConferencesNonJava, look for session AD203.

Those demos show a web app being ‘portalized’ - which does involve you, the web app author, having to change the urls your HTML, but generally not having to change the uris used as tag attributes (attributes named ‘href’ or ‘validhref’). The tags are able to use the class you provide that extends ContainerAdapter and produces valid portal namespace and urls.

-sl