Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

One more EL?  RSS feed

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question :
Given the URL for some Web Application as
'http://someServer.com/testServlet.jsp?color=RED&color=BLUE&color=GREEN'
Which of the following EL will evaluate to RED and GREEN?
a. ${paramValues.color[0]} and ${paramValues.color[2]}
b. ${param.values.color[0]} and ${param.values.color[2]}
c. ${param.color[0]} and ${param.color[2]}
d. None of the above.

Ans is:b
Is it correct??

Thanks,
Amarshi
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2921
205
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amarshi,

Also here: please QuoteYourSources

Regards,
Frits
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!