File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
static and dynamic portion
Instaniating a Servlet
Servlet to Jsp parameter calling
which jar files are required for servlets and JSP
Submit the form