internet explorer - Opening an URL with request parameters in IE using Java Runtime class -


i've code block open given url in default browser. i've problem opening urls parameters in ie, when default browser firefox works fine, seems ie removing parameters!!! other way solve problem?

code using is:

 runtime.getruntime().exec("rundll32 url.dll,fileprotocolhandler \"" + url + "\""); 

i've problem urls "...test.html?param1=val1&param2=val2" in ie

thanks,

rakesh.a

if using java 1.6, try following instead:

desktop.getdesktop().browse(new uri(url)) 

this (java.awt.desktop#browse(..)) platform independent way of opening default browser.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -