Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TagLibs V/s jsp:include

 
srividhya umashanker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When To use, Tag libs and when to use jsp:include, can anyone explain with examples.
 
Charles Hasegawa
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jsp:include only includes the response from the included reference, nothing else.
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, generally speaking, the tags in your taglib should not be application specific (e.g. they can be reused in other applications).
 
srividhya umashanker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do u mean that i should not use custom tags to isolate the reusable code, taht is specific to that particular application?

It would be more useful, if u can explain with examples, when to use JSP-include/ taglibs and when not to...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic