This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JSP and the fly likes EL evaluation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "EL evaluation" Watch "EL evaluation" New topic

EL evaluation

Medhat Menon

Joined: Nov 29, 2006
Posts: 4
Here is an Html form
<form action="Test.jsp">
First Food : <input type="text" name="food">
Second Food : <input type="text" name="food">

<input type="submit">

The user input for First Food in the form is "Cheese".

Inside Jsp

First Food request param : ${[0]}

In the above jsp code what does food[0] evaluate to?
[ December 06, 2006: Message edited by: Medhat Menon ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Did you try it?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Is this an exam question? A homework question?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: EL evaluation
jQuery in Action, 3rd edition