Strutstiles可视化调试
在之前的工作中,他们有一个调试模式,可以在浏览器中突出显示 struts 磁贴,这样您就可以知道每个磁贴正在做什么以及磁贴的文件名。 当您迷失在嵌套瓷砖的森林中时,这非常有帮助。 现在我在一个新的 struts 地方,我一直在试图弄清楚如何实现它,但我一无所获。 有任何想法吗?
At a previous job they had a debug mode that would highlight struts tiles in the browser so you could tell what each tile was doing and the tile's filename. This was enormously helpful for when you are lost in a forest of nested tiles. Now that I'm at a new struts place, I've been trying to figure out how to implement it but I'm coming up empty. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下代码适用于我(在 jsp 中):
因此,您可以将其合并到放入每个图块的标记中,将代码包装在
if (debugMode)
检查中。希望有帮助!
the following code works for me (in a jsp):
so, you could incorporate that into a tag that you'd put into each of your tiles, wrapping the code in an
if (debugMode)
check.Hope that helps!
它可能只能让你成功一半,但我下载了一个名为 WebDeveloper 的 Firefox 工具。 它非常漂亮地概述了表格和单元格。
亚伦
It will probably only get you halfway there, but I downloaded a tool for firefox called WebDeveloper. It outlines tables and cells very nicely.
Aaron