• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

how can i compile a file on the server using a button in jsp..

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a button in jsp and when activated it needs to send message to the command prompt on the server to compile a file.( similar for running a file). code for the button is
<html>
<body>
<div align="center">
<form method="post" action="temp.jsp" enctype="multipart/form-data">
<center>
<h4>Command for compiling the code at the prompt:</h4>
<input name="program" type="text">
<input type="submit" name="compile" value="Compile">
<input type="reset" name="clearform" value="Clear form">
<h4>Command for executing the code at the prompt:</h4>
<input name="program" type="text">
<input type="submit" name="run" value=" Run ">
<input type="reset" name="clearform" value="Clear form">
</center>
</form>
</body>
</html>
what is needed to be written in temp.jsp("the action file") is there any functin for directly for sending text to the command prompt and executing it. if so what is it and how is it done....
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is some pseudo-code for executing a command:

James.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic