Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics 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 August 4th, 2005, 12:08 PM
Registered User
Join Date: Aug 2005
Location: bangalore, karanataka, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resultset error

i need to sum all the values in the column called price which is in DataBase, but when i use :
<% Statement s = con.createStatement();
ResultSet rs = s.executeQuery("select SUM(after_discount) from details"); %>

<%= rs %>

i am getting msg as "sun.jdbc.odbc.JdbcOdbcResultSet@1d95da8" .... i dont know why....

as s.executeQuery() returns ResultSet... so i am using ResultSet rs....
can you plz tell me is any other way to get the output which sums the column???;)

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
Question in ResultSet.TYPE_FORWARD_ONLY viks Java Databases 1 March 27th, 2005 05:18 AM
display the resultset of 2 table join keyvan Classic ASP Databases 0 March 7th, 2005 09:34 AM
Find a particular data using ResultSet bamboat_45 Java Databases 2 August 5th, 2004 12:54 AM
Updatable ResultSet as procedure out param rfletch6 Java Databases 0 January 29th, 2004 08:00 AM
Query Tables -- Resultset Paul O. Schenker Excel VBA 1 July 16th, 2003 04:32 AM

All times are GMT -4. The time now is 02:43 AM.

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