• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question of custom tag

 
rehans oberoi
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which three are valid values for the body content of a tag directive
in a tag file ( choose three)

1.EL
2.jsp
3.empty
4.dynamic
5.scriptless
6.tagdependent

hi ranchers
tell the answer of this question
my answer is 1,?,?
 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answers are 3,5 & 6.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you mean the body-content attribute in a tag directive,
I would also say 3,5 & 6.
[ December 13, 2005: Message edited by: Satou kurinosuke ]
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is asking about <body-content>.

EL is not a valid body-content value.
 
rehans oberoi
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry

according to me
my answers are
2, 3 ,5 , 6

i want three choices
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The body of a tag file cannot have scripting code. Which means jsp cannot be a value in <body-content> tag.
 
rehans oberoi
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi vishnu

see page no 472 of hfsj
it is given
 
Indunil Dasanayaka
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
default value for the body-content attribute in a tag directive is scriptless.
and we can't use scriptlets in the tag body for the tag files therefor JSP is not allowed.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is with respect to Tag Files and not Custom Tags. Check page: 498
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic