• Post Reply Bookmark Topic Watch Topic
  • New Topic

another EL doubt  RSS feed

 
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!