• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP translation question

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in JSP translation,

"Instatiation of servlet class" and "loading the servlet class"

what is difference?

Thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Loading the servlet class" - loading of the actual class file into the servlet/JSP engines JVM - analougous to "Class.forName( "com.foo.ServletSubclass" )".

"Instantiation of servlet class" - creating an instance/object of the previous class. - analougous to "new ServletSubclass()" or "Class.forName( "com.foo.ServletSubclass" ).newInstance()".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!