Query_String value empty with agent URL from xpage

5 pts.
Tags:
Application development
Domino 8.5.2
Lotus Domino 8.5
Web Agent URL
Windows Server 2003
Xpages
Hi there,  
I'm developing an application using xpages in domino 8.5.2 running on a windows 2003 server.
My problem is this. I have a xpage on which I added an onload event which calls a client side javascript library.
XSP.addOnLoad(function(){getMyValues()});
  
This function (used for displaying a Fusion Chart swf chart) then calls a lotusscript agent with the fusion charts setDataURL api call. The url contains the agent name and the parameters like
"/dbpath/agent?openAgent?val1=?val2="
.The agent returns xml.
The problem is that when I test the agent via a browser, I can add the parameters using the "&" sign and this works fine, but from within my xpage, I have to use the "?" sign for the agent to get the Query_String values.
When both val1 and val2 is empty I have no problem as the Query_String value contains all my parameters. The moment I add values to the parameters I get the following error:
2011/02/02 11:09:47 AM  HTTP Web Server: Invalid URL Exception [/myProject/dbpath/myProject.nsf/ResourceAllocation?openagent?sDate=11/02/01?eDate=11/02/28]
I have also tried to change the data to normal string values like sDate=test1?eDate=test2 thinking that the "/" in the value was the problem, but this also gives me the exact same error.
What am I missing? Please help.
Thanks
Corne


Software/Hardware used:
Lotus Domino 8.5.2 XPages

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following