• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!