i trying display list of user donations (it's project) in donations panel page possible pass array of javabeans session bean. have in mind
private userdonationbean []u = new userdonationbean();
and i'll initialize bean attributes according corresponding database information put u session object via setattribute(). method possible? how going access each bean in jsp?
yes, sounds ok. said. access jsp depends on technologies using inside. vanilla way through 'session' variable that's available in jsp unless explicitly disabled it:
<% userdonationbean[] u = (userdonationbean[]) session.getattribute("your_key") %>
if use el its
${sessionscope["your_key"] }
just minor points consider: (1) if need page, can put on request scope
(2) in production environment might want userdonationbean serializable (userdonationbean implements serializable), because container might want send across cluster, or save disc.