Issue with displaying result of the query -JSTL
Hey Guys
I am trying to get the output from a query and display it in a drop down list box.
I do get the correct output but the problem is I do not get in the format i desire.
This is where I display the output of the query
<select name="dropdown">
<c:forEach var="row" items="${data.rows}">
<option><c:out value="${row}"/></option>
</c:forEach>
</select>
This query is "select Name from Employee" and the output will simply be a list of names. The query is dynamic and might change as I am pulling it from xml.
SO in c:out I cannot use row.name and if I jus use "${row}" then I get the output as "{name=Albert}" I just want Albert as my output.. How do I achieve that?
I even tried row.value which does not work either.
Any help will be appreciated!
Thanks
|