java - Eclipse 语法突出显示 Java Struts Hibernate Web 应用程序

标签 java eclipse struts2 syntax-highlighting

我刚刚开始在 Eclipse 上进行基于Java、Struts、Hibernate、TomcatWeb 应用程序开发

我已经在我的 Ubuntu 系统上安装了面向 Java EE 开发人员的 Eclipse IDE

Do I need to install any plugins for Syntax Highlighting to work properly - for Forms, Actions, Servlets, Classes, etc.?

谢谢。

最佳答案

EMMERICH: "As long as you include the Struts schema tag on any page that uses any struts tags (s:whatever) it should pick up the syntax automatically."

不,这还不足以让它发挥作用。

试试这个:

    <s:if test="#balance<=0">
    <p>whatever</p>
    </s:if>

由于 struts 标签中使用了 <,Eclipse 的语法高亮只会失败并警告错误。

关于java - Eclipse 语法突出显示 Java Struts Hibernate Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3978315/

相关文章:

java - 如何在java程序中获取操作系统属性?

java - MacOS Eclipse IDE 运行具有较旧 Java 版本的应用程序

jquery - Struts2 jQuery 插件自动完成器呈现具有样式属性的 HTML <== 改变这个?

java - "Not a managed type..."启动 Spring Boot 应用程序时出错。我究竟做错了什么?

java - Camel 和 Jackson 依赖性问题

java - 如何获取java编辑器源代码?

java - 配置中的 Struts2 {}

jakarta-ee - 如何访问 Struts 2 Action 类中的 url 参数

java - 当我在 eclipse 中测试 java GUI 时,如何知道调用了哪个方法/类?

java.lang.RuntimeException : Unable to instantiate activity ComponentInfo java build path