File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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!