Home > Ask the Domino Experts > Questions & Answers > How can I call/pass a parameter to a JSP page from within a scheduled LotusScript agent?
Ask The Domino Expert: Questions & Answers
EMAIL THIS

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

Jens Bruntt EXPERT RESPONSE FROM: Jens Bruntt

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site
>
QUESTION POSED ON: 03 April 2003
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.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts