Opening URL from java agent

Hello,

This is probably simple for some of you. How do you open a URL from a java agent

my code has

pw.println(“[http://www.myurl.com]”);

All the agent returns however is [http://www.myurl.com] instead of opening the site.

Subject: Opening URL from java agent

Try:

pw.println(“”)

Subject: RE: Opening URL from java agent

Thanks guys.

I needed to do:

pw.println(“”);

to get it to work. Thanks again.

Subject: RE: Opening URL from java agent

Jason, while this approach might work for the moment within a closed environment (where you can predict the use of JavaScript) it is still pretty ugly.

Normally, your original solution should work just as well as what Rafez suggested. If it doesn’t the most likely reason is, that you have used print(ln) statements at some earlier point in your code. Remove those prior println calls and you should be fine.

Subject: Opening URL from java agent

		pw.println( "Location: http://www.ibm.com" );