Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how taglibs are handled by compiler?

 
Neelima Paramsetty
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
If i used a taglib in my JSP page ,how the javacompiler(After jsp is converted to JAVA.class file)internally handles that?
Thanks in advance,
Neelima
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The tags are turned into simple Java statements which activate the tag handler's methods as appropriate during the translation stage (where the JSP gets turned into a Java servlet).
The compliler then compiles the Java code into a class file like any other Java source file.
You should take a look at the Java source files that are generated from your JSP pages by your container. Very informative.
hth,
bear
[ July 21, 2003: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic