[英]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.