Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best way to pass array to bean

843836Apr 22 2005 — edited Apr 26 2005
Hi,

is this form os passing an array to a bean a good way?

jsp
String[] strings = new String[]{"alpha", "Bruce Lee", "Omega"};
pageContext.setAttribute("strings", lista);


bean
private String[] strings = null;
strings = (String[]) pageContext.getAttribute("strings");


PV
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2005
Added on Apr 22 2005
14 comments
455 views