gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 07:15:06 25 4
gpt4 key购买 nike

编译错误,很好,这是您在输入错误代码时遇到的典型错误。但是我正在阅读关于翻译错误的这件事怎么样?我从来没有在普通的 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com