• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp recompiled?

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
If I have a JSP page page1.jsp that includes another JSP file. If the included file name changes everytime when page1.jsp is called (for example, the included file path is retrieved from a database), then, will page1.jsp be recompiled everytime when it is called. The file could be included using either <jsp:include or <%@include.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The outer page will not be re-compiled when using the <jsp:include> mechanism and providing a run-time determined value, since nothing on the page has changed.
What you are trying to do won't even work with the include directive since that is evaluated at translation time and there's no way to supply it with a run-time value.
hth,
bear
 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,
Your answer is very clear. Thank you!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!