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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -