Java applet replacement technologies

2020-05-07 06:46发布

问题:

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.

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

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

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.

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?

回答1:

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.