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

another EL doubt

 
uday ogra
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%int[] num = {42,420,4200};
request.setAttribute("foo",num);%>

Now what would the following statement return:
${requestScope["foo"][1]=420}

shoudn't it be true
 
nitin pai
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by uday ogra:
<%int[] num = {42,420,4200};
request.setAttribute("foo",num);%>

Now what would the following statement return:
${requestScope["foo"][1]=420}

shoudn't it be true


it should be ${requestScope["foo"][1]== 420}
 
uday ogra
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops...thanks nitin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic