Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning JavaServer Pages
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning JavaServer Pages
This is the forum to discuss the Wrox book Beginning JavaServer Pages by Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell; ISBN: 9780764574856
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaServer Pages section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 24th, 2008, 08:31 AM
Registered User
Join Date: Feb 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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>

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!
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ToWords() function not displaying Result kavadoota Crystal Reports 0 November 28th, 2006 02:30 AM
JSTL, XML query ph3n0m JSP Basics 1 January 26th, 2006 08:11 AM
Unexpected result from the query tsimsha Classic ASP Databases 1 August 23rd, 2004 03:50 AM
Query Result mateenmohd SQL Server 2000 0 November 1st, 2003 03:53 AM
Archiving query result Ned SQL Server 2000 5 October 8th, 2003 03:34 PM

All times are GMT -4. The time now is 03:50 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.