File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes purpose of .tag files? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "purpose of .tag files?" Watch "purpose of .tag files?" New topic
Author

purpose of .tag files?

Jeyalakshmi Palaniyandi
Greenhorn

Joined: Aug 10, 2005
Posts: 13
i have read about .tag files in head first servlet/jsp.
they mentioned that .tag files are just glorified includes.
is it same like <jsp:include> and <c:import>?
can any one please tell me whats the difference between the two.
and also what is the main purpose of .tag files?

thanks,
Jeyalakshmi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56169
    
  13

Tag files allow you to create custom actions (tags) using JSP markup rather than writing a tag handler in Java code. They are well-suited to tags that emit lots of template text or that need to perform JSP-like actions.

They are superior to include or imports for creating re-usable components because data can be formally passed to the tags via the attributes. With includes and imports, data passing is informal via scoped variables.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Jeyalakshmi Palaniyandi
Greenhorn

Joined: Aug 10, 2005
Posts: 13
thanks a lot Bear Bibeault
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: purpose of .tag files?
 
Similar Threads
Taglib and Tagdir question?
Question on Tag files
Directives/standard actions
<jsp:invoke> and <jsp:doBody> doubts
Whats the default value of rtexprvalue