Eclipse 的 WTP 翻译输出

发布于 2024-07-06 11:52:23 字数 555 浏览 16 评论 0原文

如何查看 WTP 对 JSP 和 JSPX 页面完成的中间翻译? 在一个包含大量 .jspx 页面的项目中,我在 Eclipse 的“问题”选项卡中遇到奇怪的语法错误。 它们不会影响正在运行的应用程序 (Tomcat 6.0) 中的任何内容,并且仅在更新后的过去 2 周内出现。

我想查看输出的原因是我正在使用 Stripes 框架 http://stripesframework.org 并且在删除之后,特定 .jspx 文件的错误消失了 该文件的行。 同时,语法错误只是在我最近在工作中全新安装 Eclipse 之后才出现,但不久之后又在家里更新了 Eclipse。 我想查看输出以确定这应该是谁的问题(WTP、Stripes,或者也许只是我:)。

请记住,这个问题有些表面性,因为它不会影响任何功能。 它只是向 Eclipse 中的“问题”选项卡发送垃圾邮件,并在项目资源管理器中显示红色的小 X 图标。

How can I view the intermediate translation done to JSP and JSPX pages by WTP? I'm getting weird syntax errors in my Problems tab of Eclipse in a project that has plenty of .jspx pages. They don't affect anything in the running application (Tomcat 6.0) and they appeared only over the last 2 weeks, after an update.

The reason why I'd like to view the output is that I'm using the Stripes framework at http://stripesframework.org and the errors disappear for a particular .jspx file after I remove the <stripes:errors /> line of that file. At the same time, the syntax errors only appeared after I did recent fresh install of Eclipse at work, but then an update of Eclipse at home shortly therafter. I'd like to see the output to determine whose problem this should be (WTP, Stripes, or maybe just me :).

Remember that this issue is somewhat cosmetic, as it doesn't affect anything functionally. It simply spams my Problems tab in Eclipse and shows the little red X icons in the project explorer.

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

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

发布评论

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

评论(3

﹏雨一样淡蓝的深情 2024-07-13 11:52:23

现在,您必须添加单独的自动化测试下载才能执行此操作,并且仅在 3.1 分支中,但它可以通过 Ctrl+Shift+9 启用“显示翻译”命令。 请注意,生成的翻译与服务器在运行时创建的翻译并不 100% 相同——它并不打算被执行。 此外,最新的 3.0.3 版本包含对翻译器的修复,应该可以解决此类问题(嵌套变量 + 自关闭标签)。 3.0.3 将于 11 月到期,应该会干净地更新到 Ganymede SR1。

Right now you'd have to add the separate automated tests download to do this, and only in the 3.1 branch, but it enables a "Show Translation" command through Ctrl+Shift+9. Beware that the translation generated isn't 100% the same as the server would create at runtime--it's not intended to be executed. Also, the most recent 3.0.3 builds contain fixes to the translator that should clear up these kinds of problems (NESTED variables + self-closing tags). 3.0.3 is due in November and should update cleanly into Ganymede SR1.

表情可笑 2024-07-13 11:52:23

我见过 eclipse JSP 编辑器几乎对任何事情都感到非常困惑。 您说如果删除标签,问题就会消失。 如果你把标签放回去,它还会回来吗? 我知道 Eclipse 3.3 有时在打开 JSP 文件时会出现一些问题,强制保存会清除文件中的错误消息(我还没有尝试过 3.4)。 也许这就是发生在你身上的事情。 除此之外,您是否在文件中定义了所有正确的 include/xml 命名空间?

I've seen the eclipse JSP editor get really confused over almost nothing. You said the problem goes away if you remove the tag. Does it come back if you put the tag back? I know that Eclipse 3.3 sometimes had some issues with JSP files where opening them, and forcing a save would clear the file of error messages (I haven't tried 3.4 yet). Maybe that's what's happening to you. Other than that, do you have all the proper includes / xml namespaces defined in the files?

风吹雨成花 2024-07-13 11:52:23

我在 Ganymede 中使用 JSP 和 标记时遇到完全相同的问题。 Europa 没有出现任何错误。 现在它在问题窗格上显示一些奇怪的语法错误。 但正如 Silvaran 所说,这只是装饰性的,因为该项目构建正确且有效。 但它仍然很烦人。

I'm having exactly same problem with JSP and <stripes:errors/> tag in Ganymede. With Europa, there were no errors. Now it displays a couple of weird syntax errors on the problems pane. But as Silvaran stated it's just cosmetic, since the project builds correctly and works. It's still annoying though.

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