This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes from form to servlet to jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "from form to servlet to jsp" Watch "from form to servlet to jsp" New topic
Author

from form to servlet to jsp

R Kiran
Greenhorn

Joined: Jan 25, 2007
Posts: 8
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

Joined: Dec 12, 2006
Posts: 63
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


2B || !2B
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: from form to servlet to jsp