• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Translation phase - exam question

 
Manzar Zaidi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This one will be useful to all.

What all is done in the translation phase of a JSP ??

I understand that the JSP is checked for syntact correctness, and translated into servlet implementation class.

But do the referenced tag files are also translated at the same time ? are they checked for syntactic correctness in the translation pahse?
[ March 01, 2005: Message edited by: John Cage ]
 
Manzar Zaidi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well... Acording to sun :

"During the translation phase, each type of data in a JSP page is treated differently. Template data is transformed into code that will emit the data into the stream that returns data to the client. JSP elements are treated as follows:
Directives are used to control how the Web container translates and executes the JSP page.
Scripting elements are inserted into the JSP page's servlet class. See JSP Scripting Elements for details.
Elements of the form <jsp:XXX ... /> are converted into method calls to JavaBeans components or invocations of the Java Servlet API. "

From this...if the call to tags also becomes methods, then the class containing them must be compiled too. So I think tags are complied along with the JSP.


Am I correct about this ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic