Java servlet:将XML文件传输到servlet [英] Java servlet: transfer XML file to servlet
问题描述
我很难确定如何正确执行此操作,因此任何输入都会受到赞赏。
I'm having a hard time deciding how to do this correctly so any input would be appreciated.
我正在尝试从和applet传输我的xml文件
I'm trying to transfer my xml files from and applet to a servlet.
我现在找到的解决方案是将XML文件作为POST请求中的数据字符串传递。
The solution I found for now is to pass the XML file as a string of data in a POST request.
在搜索问题时,我找到了通过FTP发送它的选项。
When googling the problem I found the option of sending it by FTP.
我想知道的是有没有办法简单地转移一个使用HTTP的XML文件
What I would like to know is is there a way to simply transfer a XML file using HTTP
Jason
推荐答案
你是对的跟踪。将XML的HTTP POST发送到Servlet。但是如果要传输的XML数量巨大,那么FTP可能是正确的选择。
You are on the correct track. Do a HTTP POST of the XML to a Servlet. But if the number of XML's to be transferred is huge then FTP might be the right option.
这篇关于Java servlet:将XML文件传输到servlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!