• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in mocktest

 
sukhavasi vasavi
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your private messages
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic