This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes TagLibs V/s jsp:include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "TagLibs V/s jsp:include" Watch "TagLibs V/s jsp:include" New topic

TagLibs V/s jsp:include

srividhya umashanker

Joined: Jun 26, 2003
Posts: 4
When To use, Tag libs and when to use jsp:include, can anyone explain with examples.
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
jsp:include only includes the response from the included reference, nothing else.
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
Also, generally speaking, the tags in your taglib should not be application specific (e.g. they can be reused in other applications).

No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
srividhya umashanker

Joined: Jun 26, 2003
Posts: 4
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...
I agree. Here's the link:
subject: TagLibs V/s jsp:include
Similar Threads
I need to call a HtML file in c drive from my jsp
problem with include files
Advantage of using <jsp:include> over <%@include>
Can't get c:import to work
HELP with JSP Access DB