• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

well can you tell how transfer a List eg.

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic