Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Web Component Certification (OCEJWCD)
expression language query
geet rahane
Ranch Hand
Posts: 45
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Q..Consider the following code appearing in a
JSP
file:
<% request.setAttribute("names", new String[]{ "A", "B", "C" } ); request.setAttribute("index", "1"); %> <h1><!-- insert code here --></h1>
Which of the following statements will print B in inserted in the above JSP page?
a ${names.1}
b ${names[1]}
c ${names.index}
d ${names[index]}
e ${names.$index}
f ${names[$index]}
correct answer given is b,c,d..but i think c is incorrect.please correct me if i'm wrong...
thanks
Sebastian Janisch
Ranch Hand
Posts: 1183
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please post the source of your question so we can reply to it.
JDBCSupport
-
An easy to use, light-weight JDBC framework
-
Tripati Sahu
Greenhorn
Posts: 25
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I think B and D are correct answers. I don't think C will be correct answer. We can use do operatot only in Map and
java
beans.
Tripati Sahu
Greenhorn
Posts: 25
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This question is given in Enthuware. And confirming the correct answer is only B and D.
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
A EL Question
Is realy Enthuware commercial SCWCD 1.4 test studio such a ... crap??
Mock exam questions
EL question from Jdiscuss
Doubt about JWeb+ mock exam question
More...