logo

New Response

« Return to the main article

You are replying to:

  1. Here is a short java agent that shows how to retrieve the value of Query_String from a Java agent.

    The code retrieves the value of Query_String and then outputs it - does not parse it at all...

    Should be enough code to get someone started in the right direction with Java agent. Derek

    import lotus.domino.*; import java.util.Vector; import java.io.*; public class JavaAgent extends AgentBase {

    public void NotesMain() {

    try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); Document current_doc = agentContext.getDocumentContext(); // Parse Query String Vector v1 = current_doc.getItemValue("Query_String"); PrintWriter pw = getAgentOutput(); pw.println("Query String: "+v1); } catch(Exception e) { e.printStackTrace(); } } }

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: