简体   繁体   English

没有servlet的Java网页?

[英]Java web page without servlet?

I want to build a very simple webpage in Java. 我想用Java建立一个非常简单的网页。 In the webpage I want the user to chose a file from his computer to send to the server, in the server i'm doing some editing on the video and send it back. 在网页中,我希望用户从计算机上选择一个文件发送到服务器,在服务器上,我正在对视频进行一些编辑并将其发送回去。 Is there a way to do this without servlets? 没有servlet,有没有办法做到这一点? What's the simplest / easiest solution to this? 最简单/最简单的解决方案是什么?

There are many frameworks like struts and spring , which are providing direct interceptors for file-upload and more other features. 有很多框架,例如struts和spring ,它们为文件上传和更多其他功能提供直接拦截器。 But it needs some good hands in these frameworks. 但是在这些框架中需要一些好手。

If you are new then Servlet would be better. 如果您是新手,那么Servlet会更好。

Edit: For spring http://spring.io/guides/gs/uploading-files/ 编辑:对于spring http://spring.io/guides/gs/uploading-files/

For struts: http://www.tutorialspoint.com/struts_2/struts_file_uploads.htm 对于struts: http : //www.tutorialspoint.com/struts_2/struts_file_uploads.htm

Servlet: http://www.tutorialspoint.com/servlets/servlets-file-uploading.htm Servlet: http//www.tutorialspoint.com/servlets/servlets-file-uploading.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM