This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Java » Servlets
Bookmark "from form to servlet to jsp" Watch "from form to servlet to jsp" New topic

from form to servlet to jsp

R Kiran

Joined: Jan 25, 2007
Posts: 8
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
Pablo M�ller
Ranch Hand

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

2B || !2B
I agree. Here's the link:
subject: from form to servlet to jsp
It's not a secret anymore!