• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp include  RSS feed

 
Carol Chen
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
There is a main jsp file including another file which it changes frequently, which should I use for this including, <% @include ... > or <jsp:include ...> ?
Thanks,
Carol Chen
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
action ( jsp:include ) updates automatically
directive does not see the changes on the included file unless you add a last modified comment on top of the file which issues the call ( main in your case ) and change the value whenever included file changes
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!