是否可以将窗口应用程序与servlet连接? [英] is it possible to connect window application with servlet?

查看:63
本文介绍了是否可以将窗口应用程序与servlet连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



i开发了通过https.it上传文件的窗口应用程序是使用IIS虚拟目录上传文件。但我需要通过https.But上传服务器不包含IIS.it只包含Tomcat。现在我听说使用servlet,我们可以在tomcat服务器上运行应用程序。



现在我的问题是如何将窗口应用程序与servlet连接?是否可以使用servlet?如果可能,是指如何在窗口应用程序与servlet之间建立连接?servlet需要在服务器中运行。



提前感谢

Dear friends,

i have developed window application to upload files through https.it was upload files using IIS virtual directory.But i need to upload through https.But the server doesnot contains IIS.it contain Tomcat only.so now i heared that using servlet,we can able to run the application in tomcat server.

now my question is how to connect window application with servlet?is it possible to use servlet?if possible means how to make connection between window application with servlet?the servlet need to run in server.

thanks in advance

推荐答案

Hello Jai,



servlet是一种Java编程语言类扩展服务器的功能。尽管servlet可以响应任何类型的请求,但它们通常用于扩展Web服务器托管的应用程序。它们是非Java动态Web内容技术(如PHP和ASP.NET)的Java版本。 servlet部署在Servlet容器(如Tomcat)中,就像在IIS中部署ASP.NET页面或在Apache HTTPD中部署PHP页面一样。



话虽如此就客户端而言,上传文件不需要特殊编码。在服务器端,您必须编写一个servlet实现,该实现将接受上载的文件并将其存储在服务器的本地存储上。这里[ ^ ]是一个非常好的教程。



问候,
Hello Jai,

A servlet is a Java programming language class used to extend the capabilities of a server. Although servlets can respond to any types of requests, they are commonly used to extend the applications hosted by web servers. They are the Java counterpart to non-Java dynamic Web content technologies such as PHP and ASP.NET. The servlet gets deployed in a Servlet Container such as Tomcat, just like ASP.NET page gets deployed in IIS or PHP page gets deployed in Apache HTTPD.

Having said that there is no special coding required to upload a file as far as client side is concerned. On the server side you must write a servlet implementation which will accept the uploaded file and store it somewhere may be on the local storage of server. Here [^] is a very good tutorial.

Regards,


这篇关于是否可以将窗口应用程序与servlet连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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