Approaches for Prepopulating dropdowns in Jsp using struts.
Hi,
I'm having a functionality working of pre-populating dropdowns using struts like:
ArrayList list = getRoles(); //This method will return list of roles
request.setAttribute("roles", list);
By setting this collection in the request it will be availbel to <html:select and ><html:options> tags for pre-populating. My question here is do we need to set the list (that is to be displayed in the JSP) in request scope deliberately, or there are other better approaches as well to do the same, like using expression language and accessing the method directly.
Thanks,
Prashant.

