• Post Reply Bookmark Topic Watch Topic
  • New Topic

column name values  RSS feed

 
Eman Adenola
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am stuck..and I have no idea why this is happening at all. In theory it should work..and I believe it would work for php..but here goes


I am trying to display the contents of the record that is related to a column..but it isn't working..I don't get why...JSP is supposed to be dynamic?
It saves me time hard coding all the freaking columns...
Does anyone have any idea why it isn't working?
Thanks
 
Eman Adenola
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh...looking at that..i think i made a mistake..brb

Nope: it should work.because I am saying accset.rows[0].ID and so on...so why isn't it.. arrgh
It is valid code!
 
Vijitha Kumara
Bartender
Posts: 3992
27
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For what the "accset" refers to here?
 
Eman Adenola
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara wrote:For what the "accset" refers to here?

accset is the resultset from the query.



apparently I found that doing this

returns crap that looks like this

{AddressLine1=Apt 5 Clyde Road, AddressLine2=Donnybrook, City=Dublin, FirstName=Joseph, LastLoginDate=19-04-2011, Mobile=876654456, NoBooksReserved=0, Password=kj7899, Surname=Crotty, Telephone=8887889, Username=joecrotty}.

But I have no idea how to format into a table..I still think the first way would have been easier IMHO...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
resultsets are not suitable for use on a JSP.

Copy any data to collections such as a List for passing to the JSP and close the resultset as soon as possible.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!