Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

from form to servlet to jsp

 
R Kiran
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
This is Kiran,
How to display search results from a database, in a jsp,when a submit a form.
And my form action is some servlet
Regards
Kiran
 
Pablo M´┐Żller
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You could save the result of the query in a Collection and add it as an attribute to the request, and then forward to your jsp. There you get the collection from the request and render it as you want.
This is in most servlet/jsp tutorials.
Good Luck!!
Pablo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic