About Question enthuware.jwpv6.2.620 :
Moderators: Site Manager, fjwalraven
-
- Posts: 9
- Joined: Wed Jun 17, 2015 6:19 pm
- Contact:
About Question enthuware.jwpv6.2.620 :
This question don´t print number 3
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.620 :
Did you try it?
If you like our products and services, please help us by posting your review here.
-
- Posts: 9
- Joined: Wed Jun 17, 2015 6:19 pm
- Contact:
Re: About Question enthuware.jwpv6.2.620 :
The question: Assuming that a JSP page has a variable(not atribute) named numbers and a variable named index in its scope.
Code
Result:( ${numbers[numbers[index-1]]} )
Don't print nothing
Code
Code: Select all
<%
String[] numbers = new String[]{"1", "2", "3", "4"};
String index = "2";
%>
Don't print nothing
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.620 :
OK, I see your point. You are right. It should be the attributes not just variables. Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 29 guests