aspose file tools*
The moose likes Servlets and the fly likes how can i compile a file on the server using a button in jsp.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how can i compile a file on the server using a button in jsp.." Watch "how can i compile a file on the server using a button in jsp.." New topic
Author

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

Amithkumar Kota
Greenhorn

Joined: Jul 26, 2001
Posts: 10
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....
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Here is some pseudo-code for executing a command:

James.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i compile a file on the server using a button in jsp..
 
Similar Threads
download word document and rewrite it with updated data to same location
Where to put HTML files
working with drop down menus
"MVC" controller servlet
Problem with my jsp compilation/Java mail