• Post Reply Bookmark Topic Watch Topic
  • New Topic

Situation where [jsp:include] Must be Used  RSS feed

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can use <%@ include> directive or <jsp:include> to include duplicated JSP codes. But, in terms of functionality (ignoring performance issues or size of generated servlet) is there any situation where only one of them can achieve the thing we need to achieve?

Remember, even with <%@ include> directive, the file being included is just JSP which is afterall still dynamic content. That means, whether the include is done during translation time or not, we are always getting dynamic content.
 
Albin Joseph
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the filename itself is dynamic , you need to use <jsp:include&>.
If you want to pass some paramters, then <jsp:include> is the only solution.
[ February 14, 2006: Message edited by: Albin Joseph ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!