Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 15th, 2007, 03:06 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to suhasdoke
Default Passing multiple values to JSp

Hi,

I want to know what is that standard method to pass many different values to JSP from a servlet.

For example

i have database for Books which conatains the fields like
BookID
Name
Description
.....
...
.....
....
now these values are retrievede from database using servlet
now i want to send them to JSP
how can i do that
 
Old April 16th, 2007, 11:31 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

The usual pattern is like servlets will recieve the request from user interface and pass the recieved data to a DAO [Data Access Objects], which will interact with database and retrieve or update data. if you are retrieving data from the database this data will be stored in a java object which is ofcourse user defined, [for your case a java class with all the book details] this custom object will be returned to servlet and servlet can set this object in to request as attribute or in to session and pass the control to other servlet or jsp.

Hope its clear to you.

Regards,
Rakesh :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Multiple Checkbox Values arimakidd Classic ASP Professional 5 October 19th, 2007 10:28 AM
passing values from multiple list box tulincim Classic ASP Databases 22 October 6th, 2005 01:16 PM
passing values from multiple list box tulincim Classic ASP Basics 4 September 13th, 2005 06:40 PM
Passing multiple values to a pass- through query donnie200 Access VBA 2 July 7th, 2005 04:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.