• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

column name values

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For what the "accset" refers to here?
 
Eman Adenola
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
See where your hand is? Not there. It's next to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic