Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling an external application 1

Status
Not open for further replies.

sammi

Programmer
Oct 10, 2000
1
MY
Can JSP call an external application ie. an *.exe file or *.dll file and display it on the page itself?
Where can I find information regarding this topic?

Thanks.

Samantha [sig][/sig]
 
Hi Sammi,

You can use JSP to execute external commands.You can use Java Native Interface to execute native code code stored inside libraries or DLLs but all this i think can be done on the server since JSP pages are executed on the server.
You can execute external commands on the server using the Runtime class.
example:
Runtime r=Runtime.getRuntime();
Process p=r.exec(external command);

bye,
Hrish
 
Hi sammi,

You can find information about this in the java docs.

Bye,
Hrish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top