简体   繁体   English

如何获取驻留在远程计算机上的JSP页面?

[英]how to fetch a JSP page residing on a remote machine?

I'm looking for a way within Spring MVC to put my JSP pages in a remote machine and load them when I need them. 我正在Spring MVC中寻找一种将JSP页面放入远程机器并在需要时加载它们的方法。

The reason I wanna do this is because my application received some page templates from users and I have to save them somewhere and load them dynamically when that page get requested! 我想这样做的原因是因为我的应用程序从用户那里收到了一些页面模板,所以我必须将它们保存在某个地方,并在请求该页面时动态地加载它们! I was thinking if I want to put my users' JSPs pages inside my web-app on real time, It's not possible so I have two choice : 我在想是否要实时将用户的JSP页面放入Web应用程序中,这是不可能的,所以我有两种选择:

1) save it in a remote place and get reference to it while a request comes in 1)将其保存在遥远的地方,并在收到请求时获得对它的引用

2) save them inside database which I think that's not good because the user page may have so many visitors ... 2)将它们保存在我认为不好的数据库中,因为用户页面可能有很多访问者...

What solution you suggest ? 您建议什么解决方案?

Using unix? 使用Unix? Maybe you could mount the remote server and create a symbolic link to WEB-INF/jsp directory to point to the remote mount. 也许您可以挂载远程服务器并创建指向WEB-INF/jsp目录的符号链接以指向远程挂载。

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

相关问题 如何将文件从远程Linux机器复制到JSP Web目录 - How to copy file from remote linux machine to JSP web directory 如何在.jsp页面上显示来自同一NAT中另一台计算机的图像? - How to display an image from another machine in the same NAT on a .jsp page? 在JSP中在远程UNIX机器上运行Java程序 - Run java program on remote UNIX machine in JSP 我们如何将json对象从servlet传输到jsp页面,以及如何在jsp页面中获取json数据? - How can we transfer json object from servlet to a jsp page and how to fetch that json data in jsp page? 从位于多个div下的多个表中的JSP页面向Excel动态数据 - Dynamic Data to Excel from a JSP page residing in multiple tables under multiple div 如何在 JSP 页面中获取任何字符串值 - How can i fetch any string value in JSP page 如何从Struts 2中动态生成的JSP页面获取数据? - How to fetch data from dynamically generated JSP page in Struts 2? 如何逐个从数据库中获取条目/值到jsp页面? - How to fetch entries/values from database to a jsp page one by one? 如何从远程PC打开jsp / servlet页面? - how can i open jsp/servlet page from remote pc? 在没有JSP / Servlet作为中介的情况下,如何从另一台计算机上的独立客户端调用通过Internet在远程计算机上运行的EJB? - How to call EJB running on remote machine over internet from standalone client on another machine without JSP/Servlet as intermediate?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM