用于调用命令行程序的 Web 应用程序框架 [英] Web app framework to call command line program
本文介绍了用于调用命令行程序的 Web 应用程序框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在设计一个 Java EE Web 应用程序(在 tomcat 上运行)
We're designing a Java EE web app (to run on tomcat)
它旨在成为命令行程序的 Web 界面.是否有任何框架/应用程序允许这样做?
It's intended to be a web interface for a command line program. Is there any framework/application that allows this?
即JSP 页面将在内部向安装在与 Tomcat 服务器相同的服务器上的程序发出命令.
i.e. JSP pages which will internally fire commands to a program installed on the same server as the Tomcat server.
命令行是一个专有的非 Java 程序.
The command line is a propietary non-Java program.
推荐答案
您可以使用 java.lang.Runtime
和它的 exec(..)
方法来启动命令行程序.
You can use java.lang.Runtime
and its exec(..)
methods to start command-line programs.
这篇关于用于调用命令行程序的 Web 应用程序框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文