Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using tag files  RSS feed

 
Rao Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tag files is another way to use include mechanism in jsp.

is tag file more like include directive (at translation time) or <jsp:include> (at runtime)?

thanks, Rk
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorta kinda slightly, but not really.

While you can easily use tag files to perform parameterized includes, they're more powerful than that and you should think in broader terms with regards to them.
 
Rao Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear again for your prompt response.

Could you give an example on other usages?

Rk
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP include action is a mere wrapper around the request dispatcher include method. Tag files are implementations of SimpleTagSupport and inherit all the power of the custom tag mechanism.

I highly suggest consulting the chapter in the JSP 2.0 Specification on tag files.
[ August 15, 2006: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!