Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
The human mind is a dangerous plaything. This tiny ad is pretty safe:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1032 times.
Similar Threads
Regarding TLD Location
taglib declaration
Problem in jsp using custom tag
Problem in jsp using custom tag
tld file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:50:03.