• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Sql not working for multiple rows  RSS feed

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My below code is working only if there is a single row. could you please help me in doing it for all the rows retrieved from the database.




please help me with it.

Thanks
 
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just to get it over with jsp and servlets

you are creating many forms with the same name... won't that be a problem. infact you are making lots of buttons with the same name each time round the loop.

Try writing this as a static page, and finding out how to make it work, then if you want to become a good developer move the sql to a servlet, then write the web page properly.
 
Rakesh Keerthi
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Wendy,

Thanks for the reply. I've moved my SQL code to a servlet, now what to do? i'm still getting the same result.

 
Wendy L Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Wendy Gibbons wrote:just to get it over with jsp and servlets

you are creating many forms with the same name... won't that be a problem. infact you are making lots of buttons with the same name each time round the loop.

Try writing this as a static page, and finding out how to make it work
, then if you want to become a good developer move the sql to a servlet, then write the web page properly.



Now do the bit in bold
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!