• 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

Showing a list result in jsp view page from database

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I build a portlets that retrieve data from my mysql database. I show a small form and the user introduce a id numbre then in the processAction I connect with my database and extract the personal data. Then i show the register in the view.jsp.
Now I want to show all the list the persons that exist in my database table but... I dont know as to pass all the register from the processAction to my view.jsp?
I had found this thread in internet here but I had not get solve my problem.
I am working with netbeans 6.9.
Here my processAction code :


in my view.jsp :
i put this line for testing
String[] vector =request.getParameterValues("registro1");
but the vector value is null.

Also I create a array (a,b,c) for test setRenderParameter but it is null again.

Please if any body know as show a list de data (registers) or know a tutorial in netbeans for that, let me know.

Thank you very much and Apologizes for my bad english.

NOTE: the processAction code work fine when i want to show only one register, is to say, eliminating some lines (where i use the arrays) this work correctly but i dont find the way to pass multiples register to my view.jsp.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic