• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic