wood burning stoves 2.0*
The moose likes JDBC and the fly likes well can you tell how transfer a List eg. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "well can you tell how transfer a List eg." Watch "well can you tell how transfer a List eg." New topic
Author

well can you tell how transfer a List eg.

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
well can you tell how transfer a List eg. created as

from bean to jsp or from bean to bean or from jsp call to bean, and appear contents on screen or populate a Table(db) ?
In a Shopping cart web app I must add lineItems first and after Order, to Tables in DB: LineItems and Orders respectively?



Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
subject: List object data appear in jsp(view) or enter in db-table(model) like cartItems in cart

1)db Q

in a for body that executes a query like above:
sttmnt2.executeUpdate(sqlCommand3);
the
sttmnt2=conn.createStatement();
must appear outside loop? is this above correct?

2)Q:List object data appear in jsp(view) or enter in db-table(model) like cartItems in cart

When I have a List obj contains cartItems objects (eg shopping cart) already populated in a javabean, and want to appear this data to the next jsp file(view) and then enter them in database table via next confirm.jsp that use a process bean(model), what to do to transfer this List Object?
 
 
subject: well can you tell how transfer a List eg.