Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock exam question on Tag

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The contents of tag handler class MyPage. are

the contents of tag library descriptor mypage.tld are :

the contents of jsp file are

On executing jsp file guess Hello would be printed how many times
A Not even Once
B Once
C Twice
D Four
Pls correct me if ans is not A
Because when I tried it it did not displayed the msg even once
[ added CODE tags and some formatting -- PdH ]
[ May 09, 2002: Message edited by: Peter den Haan ]
 
Joe Man
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you sure?
i got it to display 4 Hello after i tried out your code.
i think you should stop using EVAL_BODY_TAG.. use EVAL_BODY_BUFFERED instead. EVAL_BODY_TAG is depreicated.
 
Ricardo Cortes
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the replacement for EVAL_BODY_TAG isn't EVAL_BODY_BUFFERED. It's EVAL_BODY_AGAIN in JSP 1.2.
Originally posted by Joe Man:
are you sure?
i got it to display 4 Hello after i tried out your code.
i think you should stop using EVAL_BODY_TAG.. use EVAL_BODY_BUFFERED instead. EVAL_BODY_TAG is depreicated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic