• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP translate into servlet

 
Lalit mishra
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we remember which class is implemented or extended or imported by a jsp file
when a jsp file is translated into a servlet? does exam contains question on this ?
 
Collins Mbianda
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lalit !!!
I'm preparing for the exam. I don't think we need to know thoses classes.
In HFSJ(page 303), you'll read this:

The Container generates a class from your JSP that implements the HttpJspPage interface. This is the only part of the generated servlet's API that you need to know.
....
All you need to know about are key methods:
  • jspinit()
  • jspDestroy()
  • _jspService()

  • Good luck.
     
    Christophe Verré
    Sheriff
    Posts: 14691
    16
    Eclipse IDE Ubuntu VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    jspinit() -> jspInit()
     
    my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
    the new thread boost feature brings a LOT of attention to your favorite threads
    https://coderanch.com/t/674455/Thread-Boost-feature
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!