java - 在JSP技术中,翻译错误和编译错误有什么区别?

标签 java jsp servlets

编译错误,好吧,这是输入错误代码时出现的典型错误。但是我正在读的关于翻译错误的事情怎么样?我在普通java中从未遇到过类似的情况。它要么不编译,要么编译。请帮助说明什么是翻译错误?它出现在

之间的图片中的什么位置
  • 编译错误(我知道)
  • 运行时异常(我知道)
  • 翻译错误----??????

最佳答案

Translation Error : This type of Error occurs during the initial request. When a JSP page is first requested and goes through the initial translation from a JSP source file into a corresponding Servlet class file.

JSP 页面翻译:

A java servlet file is generated from the JSP source file. This is the first step in its tedious multiple phase life cycle. In the translation phase, the container validates the syntactic correctness of the JSP pages and tag files. The container interprets the standard directives and actions, and the custom actions referencing tag libraries used in the page.

要了解有关 JSP - 生命周期的更多信息,请访问 http://javapapers.com/jsp/jsp-life-cycle-explain/

关于java - 在JSP技术中,翻译错误和编译错误有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18033154/

相关文章:

java - 为什么我们把存储对象属性的变量称为实例变量呢?

Java构造函数继承?

java - JSP 登录页面无法正常工作

java - ServletContext.getResourceAsStream 返回 null

java - 模拟对象返回实际数据

java - 箭头运算符 '->' 在 Java 中起什么作用?

java - 使用Java代码进行映射器和化简器的EMR流作业

Java servlet 未接收请求属性

jsp - 如何检查 JSF UIComponent 在 jsp 文件中是否有效?

jsp - '+' 符号在 Servlet 的请求参数中被空格替换