Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I embed runtime exe files in JSP  RSS feed

 
jk reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I embed runtime exe files in JSP
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by embed? If you want to run a .exe from JSP, use java.lang.Runtime.exec() method.
 
jk reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sravan I am excuting this in JSP
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("c:/windows/system32/mspaint");
but this paint must bu come in my text area...
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not grasp your requirement. Why do you want to display mspaint.exe in a textarea? This cannot be done and why will someone have to do this?

You can develop a custom-defined applet or get a free-download paint applet and display on the browser if that suits your purpose.
 
Bineet Singh Uppal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do it by embedding the control of mspaint but for that u need to program in asp. for java you have to suffice with an applet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!