• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implicit mapping in custom tags

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 242
Mac Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
reply
    Bookmark Topic Watch Topic
  • New Topic