Problem solve Get help with specific problems with your technologies, process and projects.

How can I call/pass a parameter to a JSP page from within a scheduled LotusScript agent?

I need to call and pass a parameter to a JSP page from within a scheduled LotusScript agent. Can this be done?
The quick answer is: no, you can not.

Here's the long answer, though:
There are some Web-related LotusScript methods, but they are all foreground (NotesUIWorkspace) and thus unusable in a background agent like yours.

You would be best advised to create a Java agent instead of a LotusScript one. I have myself created a couple of agents that connect to a URL and retrieve what's there, and my Java skills are extremely basic. Networking, connecting to resources over the Net, is built in with Java.

Staying with LotusScript, a method that I myself have not tried but which I am sure you could look at (assuming you are running the Domino server on a Windows platform), is to use OLE with MS Internet Explorer (which then needs to be installed on the server). You could get a handle from LotusScript to the Browser ActiveX component in IE and make it connect to your JSP. I am sure you could get it to work. I would be worried about the stability of your server, though. IE is a foreground application, and I don't like activating that kind of application on a production server. I'm thinking about memory leaks, security holes, crashes that prompt for actions and the like.

Finally, if you are on Domino R6 there is the option of using LS2J -- calling Java from inside LotusScript. There is a good introduction to that approach, a presentation from LotusSphere 2002.

All in all, I'd advise you to look at a Java approach to do what you need.

Dig Deeper on Web Development for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...