Java Spring,如何使用远程托管的JSP文件?

发布于 2024-10-19 07:20:12 字数 185 浏览 1 评论 0原文

我对此进行了搜索,发现了一些有关使用远程托管 JSP 的信息,但它不是特定于 Spring 的,而且我不太确定如何使其与 Spring 一起工作。我遇到的情况是,我需要向负责 JSP 的设计人员授予访问权限,但不允许我访问应用程序的其余源代码。我希望他能够在应用程序运行时更新 JSP 并实时查看结果,因为这将减轻我作为中间人的巨大压力。非常感谢任何建议。

I have searched on this and found something about using remotely hosted JSPs but it was not specific to Spring and I am not quite sure how to make it work with Spring. I have a situation where I need to give access to a designer who will work on the JSPs but I am not allowed to give access to the rest of the source code for the application. I want him to be able to update the JSPs and see results in real time as the application is running as that will take a lot of pressure off of me having to be the intermediary.. any advice is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

冷默言语 2024-10-26 07:20:12

似乎您正在尝试解决错误的问题。

您应该找到一种方法,只为设计者提供对 JSP 目录的独立访问,而不是尝试疯狂的远程处理策略。

也许设置一个脚本,每当发生更改时,该脚本都会自动将设计器的 JSP 目录与服务器的目录同步(实际实现取决于您运行的平台)。

Seems like you are trying to solve the wrong problem.

You should find a way to give the designer isolated access to the JSP directory only, not experiment with wild remoting strategies.

Perhaps set up a script that automatically syncs the designer's JSP directory with the server's whenever changes are made (the actual implementation depends on the platform you are running on).

揪着可爱 2024-10-26 07:20:12

您可以使用某种共享文件夹服务,例如 Dropbox

You can use some kind of shared folder service like Dropbox.

幸福%小乖 2024-10-26 07:20:12

这是一种后门方法,但是如何仅设置一个 FTP 站点,其中设计者的“主”目录是目标服务器上部署 JSP 的目录。

设计者需要将更新的文件通过 ftp 传输到位,但听起来目前他将您视为个人文件传输机制。

或者,可以只提供编译后的类文件吗?如果这是 Java EE,我只需将 EAR 文件提供给设计人员,然后他们就可以破解 JSP 并重新部署,而无需源代码。或者就地编辑已部署的应用程序,同样不需要源。

It's kind of a back-door approach, but how about just setting up an FTP site with the designer's "home" directory being the directory in which the JSPs have been deployed on your target server.

The designer would need to ftp the updated files into place, but it sounds like at present he's treating you as personal file transport mechanism.

Alternatively, could just just give the compiled class files? If this was Java EE, I would just give the EAR file to the designer, they can then hack the JSPs and redeploy without needing the source. Or edit the deployed app in situ, again no source is needed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文