• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic