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

Implicit mapping in custom tags

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1)How does container search for tag file present in jar file under web-inf/lib directory without specfying logical name in web.xml?

Does container by default searches or parse web-inf/lib directory?

Q2)Please explain diffrence?
root-relative uri vs non-root relative uri

Q3)please tell me i f i am wrong
non-root relative uri means jsp file and tag file must be in same location
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll answer only Q1
Does container by default searches or parse web-inf/lib directory?

Yes. It then searches inside the JAR files and does the necessary mapping.
 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amolpalekar Kadolkar

Q1)How does container search for tag file present in jar file under web-inf/lib directory without specfying logical name in web.xml?

For the tag files which are in WEB-INF/lib, proper place will be either META-INF/tags otr its sub directorie. And to make the the container to locate that file you will hava to make an entry in the TLd like this:
<tag-file>
<name>fileName</name>
<path>/META-INF/tags....</path>
</tag-file>

Q2)Please explain diffrence? root-relative uri vs non-root relative uri

root-rlative means relative to your application's root directory.i.e. the directory which containds your WEB-INF folder (no foreward(/) slash is required)
nonroot-relative means relative to your current page that may be a JSP page or an HTML page (always accompanied by a forward(/) slash).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic