Using runtime.exec to open html file - and pass parameters or set a cookie?
Posted on 2004-09-28
I've got a Java Application where I get UserName, and need to pass it to a webpage. My application calls temp1.html which doesn't use it, but should pass the UserName to another page temp2.html)
Right now I'm using Runtime.exec(iexplorer, c:\temp1.hml)
And I've tried Runtime.exec(iexplorer, c:\temp1.hml?name=abc) but I get an error that cannot find file "c:\temp1.html%3Ftemp1.html"
Not sure if this is the best solution, does anyone know if its possible to set a cookie from my Java app instead, so when temp2.html is called it can retrieve the cookie?