This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Threading an external application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Threading an external application" Watch "Threading an external application" New topic
Author

Threading an external application

Rudy Simon Yeung
Greenhorn

Joined: Jun 06, 2003
Posts: 15
I am trying to thread an external application from within an html/jsp page. It is exactly the same as clicking a video link provided in the browser, and then a window media player will then pop up. However, it is different from popping up a URL resource which you can make use of the window.open() in the javascript. Can anyone tell me how it can be done?

Thank You,

Rudy

[ October 13, 2004: Message edited by: Rudy Simon Yeung ]

[ October 13, 2004: Message edited by: Rudy Simon Yeung ]
[ October 13, 2004: Message edited by: Bear Bibeault ]
Murthy Cherukumilli
Ranch Hand

Joined: Aug 05, 2004
Posts: 45
function execute(){

var Shell = new ActiveXObject("Shell.Application");
var EXEPATH = "NOTEPAD.EXE";
Shell.ShellExecute(EXEPATH, "",
"", "open", "1");
}


Thanks<br />Murthy (SCJP 1.4 , SCWCD 1.4)
Rudy Simon Yeung
Greenhorn

Joined: Jun 06, 2003
Posts: 15
Murthy,

I try your code out, but then I encounter a "permission denied" error in the javascript. Is there a security issue in IE that I have to deal with?

Thank You,

Rudy
 
Don't get me started about those stupid light bulbs.
 
subject: Threading an external application
 
Similar Threads
Cocoon
SAX Parser
String, UTF-8, Unicode and DB
reading from files
ResultSet check if there are any values