JSP & domino agent how-to?

Hello,

I am developping a application with domino tags and I would like, for a special thing, use an agent.

I wonder how I can retrieve informations from the URL of the agent in JSP…

Can you please help me?

Thanks in advance.

Philippe GABERT

Subject: JSP & domino agent how-to?

The documentation in the Designer help database on the domino:runagent tag includes the following:

“You can specify agents that run on the server, such as agents that send mail or create a folder. You cannot specify an agent that displays information in the browser to the user. For example, you cannot run an agent that contains a LotusScript print statement using this tag. If you want to capture data using this tag to run an agent, you must write the agent’s results to a document and access the document to recover the data.”

The domino:runagent tag uses the lotus.domino.Agent.runOnServer() and runOnServer(String noteID) calls to invoke your agent.

You might look in that same help database at the http server’s ‘openagent’ url syntax - you could write some almost Ajax-like server-side code to use that url (you would have to provide credentials) and consume the output of an agent that does use the print statement. Contacting another server during the JSP processing won’t help performance in your servlet container, so consider carefully how often it will happen! I’ve never tried this - if you do, please post back and let us know how it works!

Subject: JSP & domino agent how-to?

maybe something like…

<% String value=request.getParameter(“url_parameter_name”); %>