• 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

Doubt in mocktest

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A web application contains a tag file called bea.tag in /WEB-INF/tags/alpha.
A jsp page called sort.jsp exists in the web application and contains only this JSP code
1:<%@taglib prefix="x"
2:tagdir="/WEB-INF/tags/alpha"%>
3:<x:beta/>
the sort.jsp page is requested
Which two are true?

a)Tag files can only be accessed using a tagdir attribte
b)The sort.jsp page translates successfully and invokes the tag defined by beta.tag
c)the sort.jsp page produces a translation error because a taglib directive must always have a uri attribute
d)Tag files can only be placed in /WEB-INF/tags and not in any sub directory of /WEB-INF/tags
e)The tagdir attribute in line 2 can be replaced by a uri attribute if a tld reffering to beta.tag is created and added to web application.

Please give me the answer with explanation
 
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
Please check your private messages
 
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic