使用JSP执行应用程序 [英] Execute an application using JSP
问题描述
我现在可以使用jsp将.txt文件发送到服务器.它保存在本地计算机上的c:/uploads中.
任何人都可以在源代码/jsp方面为我提供帮助吗
1)将上传的文件放在本地计算机"C:/uploads"中,然后使用可以通过命令行调用的应用程序(text-mp3转换器)将文件转换为mp3.
例如:TextSpeechConverterCL –txt f:\ Mfile \ plan.txt –保存f:\ Mfile \ plan.mp3
2)在一个jsp中运行/执行该应用程序(文本到mp3)以将该上传的文件保存在"C:/uploads"中-像plan.txt这样说来转换并保存为mp3
3)如何发送URL/链接以下载mp3类型的转换后的文本文件并通过电子邮件通知客户端.
是否可以在一个JSP文件中编写满足以上所有要求的代码?
您可以通过执行以下操作回答所有问题(并获得相关的源代码)一些简单的Google搜索:
写道:1)将上传的文件放在本地计算机"C:/uploads"中,然后使用应用程序将该文件转换为mp3(文本-mp3转换器),可以通过命令行调用.
写道:2)在jsp中运行/执行应用程序(文本到mp3),以将该上传的文件保存在"C:/uploads"中'-像plan.txt这样说来转换并保存为mp3
3)如何发送URL/链接以下载mp3类型的转换后的文本文件并通过电子邮件通知客户端. >
java发送电子邮件附件 [ 解决方案
You can answer all your questions (and get relevant source code) by doing some simple Google searches:
wrote:1) Take the uploaded file in the local machine ''C:/uploads'' and convert the file into mp3 using an application (text-mp3 converter) which can be called by command lines.
text to mp3 converter command line[^]
wrote:2) Run /execute the application (text to mp3) in a jsp to take this uploaded file in ''C:/uploads'' - say like plan.txt to convert and save into mp3
wrote:3) How to send a URL / link to download the converted text file in mp3 type and inform client by email.?
这篇关于使用JSP执行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!