Glassfish v21 - 有没有办法自定义每个域的管理控制台登录页面?
我在单个 glassfish 安装下有两到三个域。 是否有一种已知的方法可以根据我尝试管理的域自定义管理控制台登录页面? (主机/端口)
I have two to three domains under a single glassfish installation.
Is there a known way to customize admin console login page based on the domain I am trying to administrator? (host/port)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 Firefox 或 Chrome 作为浏览器,那么您可以编写一个 Greasemonkey 脚本来更改每个管理控制台的页面外观。它应该相当简单,并且有很多您应该能够复制的示例。
If you use Firefox or Chrome as your browser then you could write a Greasemonkey script that would change the page's appearance for each admin console. It should be fairly trivial and there are lots of examples out there that you should be able to copy.
根据您对普雷斯顿的提示,我能够更改顶部的横幅图像。该文件是 lib\install\applications\admingui\adminGUI_war\WEB-INF\lib\webui-jsf-suntheme.jar\com\sun\webui\jsf\suntheme\images\masthead\masthead-background.jpg。
最初该文件是一个 1 像素宽的渐变,但将其更改为具有相同高度的 200 像素宽图像,效果很好。
Based on your hint to Preston, I was able to change the banner image across the top. That file is lib\install\applications\admingui\adminGUI_war\WEB-INF\lib\webui-jsf-suntheme.jar\com\sun\webui\jsf\suntheme\images\masthead\masthead-background.jpg.
Originally that file was a one-pixel wide gradient, but changed it to a 200 pixel wide image with the same height and it worked fine.