About Question enthuware.jwpv6.2.620 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ednilsoncampos
Posts: 9
Joined: Wed Jun 17, 2015 6:19 pm
Contact:

About Question enthuware.jwpv6.2.620 :

Post by ednilsoncampos »

This question don´t print number 3

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.620 :

Post by admin »

Did you try it?
If you like our products and services, please help us by posting your review here.

ednilsoncampos
Posts: 9
Joined: Wed Jun 17, 2015 6:19 pm
Contact:

Re: About Question enthuware.jwpv6.2.620 :

Post 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

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.620 :

Post by admin »

OK, I see your point. You are right. It should be the attributes not just variables. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests