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

expression language query

 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q..Consider the following code appearing in a JSP file:




Which of the following statements will print B in inserted in the above JSP page?


a ${names.1}


b ${names[1]}


c ${names.index}


d ${names[index]}


e ${names.$index}


f ${names[$index]}


correct answer given is b,c,d..but i think c is incorrect.please correct me if i'm wrong...

thanks
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the source of your question so we can reply to it.
 
Tripati Sahu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think B and D are correct answers. I don't think C will be correct answer. We can use do operatot only in Map and java beans.
 
Tripati Sahu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is given in Enthuware. And confirming the correct answer is only B and D.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic