Java applet替换技术 [英] Java applet replacement technologies

查看:351
本文介绍了Java applet替换技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个实现Java Applet技术的 WEB应用程序. Java applet 本身是从 WEB-app 中打开的,它是一个FTP客户端,可以半自动(预先配置的IP,un,pw ...)获取文件从FTP服务器列表中,然后用户选择要传输的文件.

I have a WEB-application which implements Java Applet technology. Java applet itself is opened from WEB-app and it is a FTP-client which semi-automatically(pre-configured IP, un, pw...) gets a file list from a FTP-server and user selects a file to transfer.

在Applet中,文件通过 FTP 下载,然后通过 HTTPS 流式传输到 WEB应用.

In Applet, the file is downloaded via FTP and then streamed through HTTPS to the WEB-app.

由于大多数浏览器不再支持Applet,因此现在需要替换此功能.

This functionality now needs a replacement as the Applet are no longer supported by majority of the browsers.

我自己的想法是将此功能替换为 JNLP .由于无法将 JNLP 嵌入到同一会话"中,因此必须以不同的方式实现向 WEB-app 的上传阶段.

My own thought is that this function would be replace with JNLP. As JNLP cannot be embedded into "same session", the upload phase to WEB-app must be implemented differently.

我一直认为 WEB-app 将提供一次性上传URL,该URL会接收文件,然后继续处理它.

I've been thinking that WEB-app would provide an one-time upload URL which would receive the file and then continue processing it.

我还有什么其他的可能性,您会推荐什么?

What other possibilities I have and what would you recommend?

推荐答案

如果您希望更少甚至没有代码更改,请使用JNLP,否则,请重构视图(如果使用MVC)以使用现代Java Web技术(例如Servlet) ,JSP或JSF.

If you want less to no code changes, go with JNLP, otherwise, refactor the view (if your using MVC) to use modern java web technologies such as Servlets, JSPs or JSF.

这篇关于Java applet替换技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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