Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query regarding using jsp, .tag, .tld altogether in application

 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers;

As per given in Headfirst that we can rename .jsp extension as .tag....
That tag file have to be save in WEB-INF/tags which i had done...

My Query is In this scenario did i have to call tag file or tld in jsp page?..

If i am calling tag file(tagdir attribute) in jsp and in tag file i have to define tld info??...

Please if anybody have example who have implement the example using combination of jsp, .tag, .tld then send it to me OR explain me what would be the flow for this..

Thanks in advance..

Regards;
Brijesh Shah
SCJP - 83%
SCWCD - target
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you don't need to define any thing in the tld file, untill you are packaging you tag files in a jar file.

put you tag files in the web-inf/ or web-inf/tags directory. container will pick that.

use this in calling JSP
<%@taglib prefix=... tagdir=... %>

now call the <prefix:tagfile name>

[ August 25, 2008: Message edited by: Sunny Jain ]
[ August 25, 2008: Message edited by: Sunny Jain ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic