在JSP技术中,翻译错误与编译错误之间有什么区别? [英] In JSP technology, what's the difference between a translation error vs a compilation error?

查看:87
本文介绍了在JSP技术中,翻译错误与编译错误之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译错误,很好,它是放置错误代码时遇到的典型错误.但是我正在阅读的有关翻译错误的内容呢?我从未在普通的Java中遇到过类似的问题.它要么不编译,要么编译..请帮助校准什么是翻译错误?

Compilation error, fine it's the typical error you get when put wrong code. But how about this thing I'm reading about translation error?? I've never encountered something like that in normal java. It's either it doesn't compile or it compiles.. pls help calrify what is a translation error? Where does it come into the picture between

  • 冲突错误(我知道)
  • 运行时异常(我知道)
  • 翻译错误---- ?????

推荐答案

翻译错误::这种类型的错误是在初始请求期间发生的.首次请求JSP页面并经过 从JSP源文件到相应文件的初始转换 Servlet类文件.

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页面翻译:

从JSP源文件生成一个Java servlet文件.这是 繁琐的多阶段生命周期的第一步.在里面 翻译阶段,容器验证句法正确性 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/

To read more about JSP - Life Cycle visit http://javapapers.com/jsp/jsp-life-cycle-explain/

这篇关于在JSP技术中,翻译错误与编译错误之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆