Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about jsp:include

 
maih fhil
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of <jsp:include page="Header.jsp"/>, if I make some change in Header.jsp after deploying the web-app and starting the server, will the changes be reflected without redeploying
What I have in mind is that since after the Header.jsp has been included the first time, the Servlet corresponding to the Header.jsp will be already be loaded, so making changes to Header.jsp shouldn't have any effect unless Container is providing this feature by itself
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jsp:include is including the output of the included page at request time. So there is no problem.

The include directive will include the code at compile time of the JSP
 
maih fhil
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it mean we can assume that changes to included JSP will always be reflected
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The changes that you make to your JSP are automatically reflected by your Tomcat server when you request it for the next time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic