如何在我的jsp页面中使用Compiler的功能。 [英] How to have functionality of Compiler in my jsp pages.

查看:78
本文介绍了如何在我的jsp页面中使用Compiler的功能。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TextArea,用户可以通过它编写他的代码,当他按下提交按钮时,文本应该被编译并显示结果。

任何人都可以提供我可以使用的任何API。 ?



更多详情:

我有一个由TextArea组成的表单,用户可以在其中编写代码并提交。

提交时我想通过jsp页面编译这段代码并返回编译器的输出消息。





还有一件事我没有提交代码的文件,我只有字符串。

字符串代码= request.getparameter(textareaCode);



SO有没有办法为任何一种语言编译此代码。 C,C ++或JAVA。



有没有可供使用的API?



如何通过jsp页面进行系统调用,以便我可以编译提交的代码?

i have a TextArea through which user will write his code and when he press submit button then text should get compiled and result should be displayed.
Can anyone provide any API's available which I can use.?

More Details:
I have a form consisting of TextArea where user can write code and submit.
On submit I want to compile this code through jsp page and return output message of compiler.


One more thing I do not Have file of submitted code, I have only string.
string code = request.getparameter("textareaCode");

SO is there any way to compile this code for any one languages ex. C, C++ or JAVA.

Is there any API's available which i can use to work it?

How to give system call through jsp pages so that I can compile the submitted code?

推荐答案

参见http://www.tutorialspoint.com/compile_cpp_online.php [ ^ ]。


这篇关于如何在我的jsp页面中使用Compiler的功能。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆