This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 17, 2013, 5:39 AM
5 Posts

how to use href in richtext using Java code

  • Category: APIs
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: xpages Java
  • Replies: 1
Hi guys, i have a problem.  i have written a javacode created a richtext body, for sending mails. im getting link value to view document. but i want it to show as href link.  that is link should be hidden behind a label, like click here. if we click on the link, that document has to open. 

 Thnq
May 17, 2013, 7:40 AM
110 Posts
Re: how to use href in richtext using Java code
You mean something like the following?

"<a href='http://server/somefolder/yourapplication.nsf/thexpage.xsp?databaseName=server!!somefolder\yourapplication.nsf&documentId=QPLAKSJF14619HSFK&action=openDocument'>here</a>"

Where, 

server = common name of your server 
somefolder/yourapplication.nsf = the path to your database relative to the domino server data folder
thexpage = the XPage you want to use to open your document
server = same as before
somefolder\yourapplication.nsf = same as before but change any backslash to forward slash
QPLAKSJF14619HSFK = universal ID of the document 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal