Page 1 of 1

About Question enthuware.jwpv6.2.620 :

Posted: Sun Jul 05, 2015 12:31 pm
by ednilsoncampos
This question donĀ“t print number 3

Re: About Question enthuware.jwpv6.2.620 :

Posted: Sun Jul 05, 2015 8:51 pm
by admin
Did you try it?

Re: About Question enthuware.jwpv6.2.620 :

Posted: Sun Jul 12, 2015 5:22 pm
by ednilsoncampos
The question: Assuming that a JSP page has a variable(not atribute) named numbers and a variable named index in its scope.

Code

Code: Select all

 <%
            String[] numbers = new String[]{"1", "2", "3", "4"};
            String index = "2";
        %>
Result:( ${numbers[numbers[index-1]]} )
Don't print nothing

Re: About Question enthuware.jwpv6.2.620 :

Posted: Sun Jul 12, 2015 9:55 pm
by admin
OK, I see your point. You are right. It should be the attributes not just variables. Fixed.
thank you for your feedback!