• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading JSP  RSS feed

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have one doubt regarding Servlet and JSP loading in container, If I will change any thing in java classes I have to rebuild the application after that only I can able to see changes, If I am working in JSP pages I will do any changes in JSP page I can able to see my changes with simple refresh.

underline jsp lifecycle also same as Servlet lifecycle,So what is actual difference for these cenario,Can any one explain me...


Regards,
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most containers will recompile JSPs on the fly (with some fancy caching mechanisms). Servlets are not (and should not for performance reasons) be treated the same way.
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,

as I know jsp also converted into class file, so what is the difference.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've already outlined the differences. A change in a JSP will be detected and cause an automatic reload, while a change in a Java class will not.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vardhan reddy wrote:as I know jsp also converted into class file

That is an implementation detail. An author of JSPs does not need to know this.
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bear,

I got the point
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!