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

JSP and Servlet deployment phase

 
siva chaitanya
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we do any modifications in servlet we need to re-deploy your web application but that is not same with jsp when we modify some code in jsp file we never re-deploy why it is different for jsp ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs use a special class loader that can hot-deploy the JSP's generated servlet.
 
siva chaitanya
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP compilation means jsp converted to servlet.class file, only when the request comes to jsp file. But later when i want to modify some code in jsp file and after then another request comes to jsp it is recompiled and another time it should be converted to servlet.class file means another time we should redeploy our web apllication right ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. The special classloader will automatically reload the class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic