aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes querry relating to Tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "querry relating to Tag library" Watch "querry relating to Tag library" New topic
Author

querry relating to Tag library

Sagar Shroff
Ranch Hand

Joined: Jun 07, 2011
Posts: 182

Can someone tell me how Classic tag handlers and Tag files CAN reside in the same tag library. ??
Correct me if i am wrong if abc.tag and xyz.tag both reside in /WEB-INF/tags,the container will consider them part of the same tag library.
Then how can Classic tag handlers and Tag files CAN reside in the same tag library. ??


OCJP-90%,OCPWCD-95%
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

I don't exactly understand the question. You can declare tag files and class tag handlers by using a TLD file. Classic tags are classes which reside in classes directory or in jars included in the project and not in tags directory...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sagar Shroff
Ranch Hand

Joined: Jun 07, 2011
Posts: 182

Ankit Garg wrote:I don't exactly understand the question. You can declare tag files and class tag handlers by using a TLD file. Classic tags are classes which reside in classes directory or in jars included in the project and not in tags directory...


thats what i am not getting.I was browing web when i was learning tag files and i came up with this statement that says " Classic tag handlers and Tag files CAN reside in the same tag library "
Can you tell me what exactly Tag library imply here ?
Frits Walraven
Rancher

Joined: Apr 07, 2010
Posts: 1043

Then how can Classic tag handlers and Tag files CAN reside in the same tag library. ??


When a tag file is contained in a JAR file (located at /WEB-INF/lib) it should have a declaration in a TLD file, like this:


In this TLD file you are allowed to mix regular tag declarations(classic tags), tag file declarations and EL functions

Regards,
Frits
Sagar Shroff
Ranch Hand

Joined: Jun 07, 2011
Posts: 182

Frits Walraven wrote:
Then how can Classic tag handlers and Tag files CAN reside in the same tag library. ??



In this TLD file you are allowed to mix regular tag declarations(classic tags), tag file declarations and EL functions

Regards,
Frits



Thanks alott my friend ! . You cleared this doubt of mine which was always hovering in my mind.
Thanks You

Regards,
Sagar.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: querry relating to Tag library
 
Similar Threads
Classsic Vs Simple?
Mock Exam Doubts
customer tag
So where are scriptlets never allowed?
mock questions