Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

When jsp:include and include directive are different?

 
Inocencio Oliveira
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

I wonder to get the point when there are different (about results). I created three files to represents each both situations (a include directive page, a jsp:include directive page and a page to be imported).

Content to be imported


Include directive


jsp:include page


Both pages behavior are the same, but I was thinking that in a include directive situation the content will just be displayed once, and if try to refresh the browser the Date displayed are the same from the old refreshing, but I noticed that the content is updated each refresh. I really don´t know when the pages behavior will be different.

Thanks all and sorry about my leak english!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65659
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JSP FAQ.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!