Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp include directive doubt?

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a file included by the include directive is updated, will the JSP container spot the fact and re-do the file inclusion when the JSP doing the including is next accessed?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help guys?
 
Francisco Neto
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I think so. Because the time your page calls the jsp:include standard action the container will process the included page again and then put the output inside your main page. As the container will notice that your included page was modified, so it'll be compiled and processed it again!

I hope it helps.
regards.
Francisco.
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Directive include is Static include, it won't take the changes unless the class file is deleted in th _pages folder or the server is restarted.
 
Francisco Neto
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I misunderstood with the jsp standard action.
 
Napu Sun
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFSJ, it depends on web container, since some web container also check the changes in the included file. But normally, it won't.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic